ThemeShaper Forums » Thematic

Subtitle Modification with Thematic Child Theme

(7 posts)
  • Started 2 years ago by yannibmbr
  • Latest reply from BAC
  • This topic is resolved
  1. Hey all,
    So I am struggling with adding a subtitle to my navigation in my child theme. I'm having issues with the formatting. Now, I know when I add: class="sf-menu" to the 'UL' selector that resolves the formatting and I see what I would expect. However, and I know this going to seem like a lame question, but I cannot find the line of code in my child theme or in thematic where I would place the "class="sf-menu" code. In Firebug I can see the UL selector and apply the class to it. However, I cannot find it in my theme. What is it that I am missing here? Your help is appreciated.

    Thanks.

    Posted 2 years ago #
  2. Oh and to see what I'm talking about: http://test.theurbandater.com

    Posted 2 years ago #
  3. em hr
    Moderator

    Yannibmbr-

    What is it that you are trying to do with your navigation and what code are you currently using to do it?

    -Gene

    Posted 2 years ago #
  4. Hey Gene,
    So I'm attempting to use subtitles with my navigation as shown here: http://themeshaper.com/wordpress-menu-tricks/ under the 'adding subtitles to menu links' section.

    I have added the function to functions.php, in my child theme. I can see now, that the subtitles are created, however, the formatting is off.

    For the formatting to be fixed I need to add the class="sf-menu" to the 'UL' selector. I know that. However, I do not know how or where to add "class="sf-menu" to the 'UL' selector" within my theme.

    I can go into firebug and pull up the #access div and I see the UL tag. I add class="sf-menu" to the 'UL' selector and the formatting is fixed. But I can't find this code in my child theme or in the parent thematic theme, for that matter. Does that make sense?

    Posted 2 years ago #
  5. em hr
    Moderator

    Your function is filtering wp_page_menu after thematic's thematic_add_menuclass() added the class. So you're essentially overwriting those changes with your filter. All you need to do is add the class in your function.

    If you're using the code from that tutorial all you need do is change:

    function childtheme_page_menu() { ?>
        <div class="menu">
            <ul>

    to

    function childtheme_page_menu() { ?>
        <div class="menu">
            <ul class="sf-menu">
    Posted 2 years ago #
  6. Ah cool! You may mark this as resolved. Thank you!!

    If you ever run for public office, let me know and I will see to it that you have my vote... I'll even send you a steak!

    Posted 2 years ago #
  7. BAC
    Member

    FYI If you are having issues with adding subtitles to menu links using drop down's

    dirty fix here:
    http://themeshaper.com/forums/topic/putting-dynamic-classes-back-into-sub-titled-menu-links

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.