Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #737425

    Hi guys,

    I found this thread but it doesn’t seem to be working:

    https://kriesi.at/support/topic/move-breadcrumbs/

    How do I move the breadcrumbs bar above the stocket instead of below the header?

    Thanks,

    Dave

    #737466

    Hey Dave!

    Please refer to this post – http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/

    Cheers!
    Yigit

    #737921

    Thanks Yigit…can you clarify this last part for me?

    “If you would like to add it to your child theme, please copy the whole functions from functions-enfold.php file to functions.php file of your child theme.”

    What does “copy the whole functions” mean? Does that mean copy the entire functions-enfold.php file? Or just the portion of code referencing breadcrumbs?

    Please advise.

    Thanks,

    Dave

    #737928

    Hi Dave,

    This the code you should paste into your functions.php file of your child theme – http://pastebin.com/msSYjDaL

    Cheers!
    Yigit

    #737941

    Hi Yigit,

    Im having trouble. This is what I did:

    1. Added add_shortcode( ‘bread_crumb’, ‘avia_title’ ); to line 434 of my functions-enfold.php file in the Child Theme.

    		if(!empty($avia_config['slide_output']) && !avia_is_dynamic_template($id) && !avia_is_overview())
    		{
    			$avia_config['small_title'] = $title;
    		}
    		else
    		{
    			return $html;
    		}
    	}
    }
    add_shortcode( 'bread_crumb', 'avia_title' );

    2. Created a color block on my pagewith a text element within, that includes [bread_crumb] (see private link)
    3. Copied the template-builder.php file into my Child Theme and commented out the 19th line as instructed.
    4. Copied and pasted the code you provided into my Child Theme’s functions.php.

    Not sure if Im doing something wrong or…? Can you help?

    See URL where shortcode is in private link.

    Thanks,

    Dave

    #737942

    Hey!

    Can you please create a temporary admin login and post it here privately?

    Best regards,
    Yigit

    #737948

    See private content for access to the dev site. I haven’t made any changes to this version so please let me know what you end up doing :) I also want to be able to duplicate this on other sites.

    #738566

    Any luck on this Yigit?

    #740118

    Hi,

    Please remove all modifications then revert every files back to their original state. Just add this code in the functions.php file:

    function ava_before_footer_breadcrumb() {
        $args = array(
    			'title' => '',
    			'breadcrumb' => true
    	);
    
        echo avia_title($args);
    }
    add_action('ava_before_footer', 'ava_before_footer_breadcrumb');

    Best regards,
    Ismael

    #740411

    Thanks Ismael…this worked, but it shows up on header and footer now. How do I have it only show up on the footer?

    I would also like it to show up below the footer socket. Is that possible?

    Thanks,

    Dave

    #740493

    Hi!

    Thank you for the update. Please remove the previous code then use this one instead.

    function ava_before_footer_breadcrumb() {
        $args = array(
    			'title' => '',
    			'breadcrumb' => true,
    			'class' => 'socket_breadcrumb stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true)
    	);
    
        echo avia_title($args);
    }
    add_action('ava_before_footer', 'ava_before_footer_breadcrumb');
    
    // breadcrumb socket
    function ava_custom_script_breadcrumb_socket() {
    ?>
    	<script type="text/javascript">
    	(function($) {
    		function a() {
    			$('#main .title_container:not(".socket_breadcrumb")').remove();
    			$('#main .socket_breadcrumb').detach().insertBefore('#socket');
    		}
    
    		a();
    	})(jQuery);
    	</script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_breadcrumb_socket');
    

    Cheers!
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.