Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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;
    }

    #717285

    Hey 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,
    Nikko

    #717293

    You have my permission to deactivate plugins for testing, but please return to original state afterwards.
    Login info in private content area.

    #717405

    The code snippet I used came from post #473627of this thread: https://kriesi.at/support/topic/full-width-submenu-as-new-menu-location/

    #718621

    Hi,

    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

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