-
AuthorPosts
-
January 23, 2017 at 9:30 pm #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
January 23, 2017 at 11:46 pm #737466Hey Dave!
Please refer to this post – http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/
Cheers!
YigitJanuary 24, 2017 at 8:17 pm #737921Thanks 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
January 24, 2017 at 8:21 pm #737928Hi Dave,
This the code you should paste into your functions.php file of your child theme – http://pastebin.com/msSYjDaL
Cheers!
YigitJanuary 24, 2017 at 8:45 pm #737941Hi 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
January 24, 2017 at 8:49 pm #737942Hey!
Can you please create a temporary admin login and post it here privately?
Best regards,
YigitJanuary 24, 2017 at 8:55 pm #737948See 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.
January 25, 2017 at 8:39 pm #738566Any luck on this Yigit?
January 30, 2017 at 10:49 am #740118Hi,
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,
IsmaelJanuary 30, 2017 at 8:31 pm #740411Thanks 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
January 31, 2017 at 6:36 am #740493Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.