-
AuthorPosts
-
November 24, 2016 at 9:06 am #716310
I used the code from post #473627 regarding placing a full-width submenu within pages generated by other plugin. It worked, however my breadcrumbs have disappeared from all pages.
Aside from swapping in the name of my menu, the only other mod was changing position from “absolute” to “relative”. I suspect this may have something to do with breadcrumbs disappearing, but this was the only way I was able to get the titles to not be hidden under the newly-added full-width menus.
Can help me get my breadcrumbs to show again while maintaining the added full-wdith menu above them?Here is the code pasted into my child theme’s functions.php file (with modifications):
add_filter(‘avf_title_args’, ‘avf_title_args_mod’, 10, 2); // edit default title
function avf_title_args_mod($args,$id)
{
ob_start();
echo ‘<div id=”sub_menu1″ class=”av-submenu-container main_color container_wrap sidebar_right” style=”z-index: 301; top: auto; position: relative;”><div class=”container av-menu-mobile-disabled”>’;
wp_nav_menu( array(‘menu’ => ‘Directory subcategory basic SSL’, ‘menu_class’ => ‘av-subnav-menu av-submenu-pos-center’));
echo ‘</div></div>’;$menu = ob_get_clean();
$args[‘html’] = “{$menu}<div class='{class} title_container’><div class=’container’><{heading} class=’main-title entry-title’>{title}</{heading}></div></div>”;
return $args;
}November 26, 2016 at 10:43 pm #717285Hey jimmymoto,
Can you post a link to the thread you are referring? and also please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
NikkoNovember 26, 2016 at 11:07 pm #717293You have my permission to deactivate plugins for testing, but please return to original state afterwards.
Login info in private content area.November 27, 2016 at 10:44 am #717405The code snippet I used came from post #473627of this thread: https://kriesi.at/support/topic/full-width-submenu-as-new-menu-location/
November 30, 2016 at 5:09 am #718621Hi,
Please set the user role to “administrator” so that we can access the Appearance > editor panel. Or replace the code with the following.
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); // edit default title function avf_title_args_mod($args,$id) { ob_start(); echo ' <div id="sub_menu1" class="av-submenu-container main_color container_wrap sidebar_right" style="z-index: 301; top: auto; position: absolute;"> <div class="container av-menu-mobile-disabled">'; wp_nav_menu( array('menu' => 'test submenu', 'menu_class' => 'av-subnav-menu av-submenu-pos-center')); echo '</div> </div> '; $menu = ob_get_clean(); $args['html'] = "{$menu} <div class='{class} title_container'> <div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}</div> </div> "; return $args; }
And add this code in the Quick CSS field.
.title_container { margin-top: 50px; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.