• Resolved Einder

    (@einder)


    I’m currently using the [Theme: Mantra] for my site. I would like to modify the code to add a second horizontal nav bar for child pages instead of just a drop down list. I want to make it like the one on Webhostingtalk.

    The closest thing I have found was done by Darren Hoyt, however this places a bar at the top of the page, which isn’t what I want to do. Does anyone know enough about the Mantra theme to possibly help with this?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Hello again, Einder.
    I found the source of the issue:
    Your menu id is different from mine, so the JS code I wrote to resize it is not triggering.
    Open your menu.js file and change this line:

    jQuery('#menu-primary ul.sub-menu').css( 'width', jQuery('#menu-primary').width() );

    to this:

    jQuery('#menu-my-menu ul.sub-menu').css( 'width', jQuery('#menu-my-menu').width() );

    That should fix the problem.

    Thread Starter Einder

    (@einder)

    That did fix it! Thanks a ton Marventus! I owe you!

    Cool! Thanks for keeping me posted.
    Good luck to you!

    I created a child theme for mantra but it is not working if i ma adding new function to funtion.php or includes/theme-functions.php
    i am adding this code for linking all Post Thumbnails on website to the Post Permalink,
    add_filter( ‘post_thumbnail_html’, ‘my_post_image_html’, 10, 3 );

    function my_post_image_html( $html, $post_id, $post_image_id ) {

    $html = ‘‘ . $html . ‘‘;
    return $html;

    }

    Hi santosh,
    Your issue is not the same one as the OP’s, so please open a new thread as per the Forum Guidelines (Forum Welcome).
    Thanks.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Sub-Nav Bar for Mantra Theme’ is closed to new replies.