Repositioned Nav Bar

Community Forums Forums General Discussion Repositioned Nav Bar

This topic is: resolved

This topic contains 8 replies, has 3 voices, and was last updated by  MompreneurMedia 4 months, 3 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #107377

    MompreneurMedia
    Participant
    Post count: 4

    Hello,

    I followed Studiopress’ instructions on repositioning a navigation bar. It worked and the nav bar is where I want it to be. The problem I am having now is that the content on the homepage is now clickable links.

    Any Idea how I can fix this?

    Thanks in advance

    http://draft.mompreneurmedia.com/
    #107401

    carroc
    Participant
    Post count: 12

    Sounds like a missing tag or something. Can you share your functions file for a review?

    If you back out the snippet you added, does the hyperlink problem go away?


    ~Carleigh
    Genesis Lover Skype Group
    http://carleighrochon.com

    #107414

    MompreneurMedia
    Participant
    Post count: 4

    Thank you Carliegh!

    This is the code I added. When I remove it everything goes back to normal but then the nav bar isn’t where I need it to be. Any ideas?

    //* Reposition the secondary navigation menu
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
    add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );

    Nicole

    #107419

    Tom
    Participant
    Post count: 945

    Hi Nicole,

    The quote characters in your code snippet are incorrect/unmatched. By replacing the leading single quote I was able to make your snippet work in Sample theme.

    When copying code from a page you should always visit the ‘raw’ page to ensure you get all of the code and paste directly into your php file.

    Good:
    ‘ U+0027 apostrophe (ambidextrous)

    Not good:
    ‘ U+2018 left single quotation mark
    ’ U+2019 right single quotation mark


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #107539

    MompreneurMedia
    Participant
    Post count: 4

    Thank you Tom!

    This is the code I got from the Studiopress site raw code: It says not to use the opening php tag.

    <?php
    //* Do NOT include the opening php tag
    //* Reposition the secondary navigation menu remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ ); add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );

    Here is an image of where the tag was added. Does it look correct to you?
    Repositoned Nav Bar PHP tag

    Nicole

    #107542

    Tom
    Participant
    Post count: 945

    It looks well-placed in the file (eg. no php tag) but I can’t tell from an image if the characters are correct :)

    The point is that the code is incorrect as pasted into your file. You should:
    Remove the code, save and verify the site is correctly rendered.
    Go back to the RAW snippet from the StudioPress page, copy and paste directly into functions.php.
    Save and test again. You could also try placing the code at the bottom of the file.

    At the risk of more cut and paste, you could post your functions.php at http://pastebin.com/ or similar. I’d also like to know what editor you are using for these mods – perhaps it is modifying your pasted code. <?>


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #107582

    MompreneurMedia
    Participant
    Post count: 4

    Hi Tom,

    I followed your steps using http://pastebin.com/ and Notepad++. Still not successful.

    I appreciate all of your help. Any other ideas?

    Kindly,
    Nicole

    #107590

    Tom
    Participant
    Post count: 945

    Can you post your functions.php at pastebin and provide the link here so we could look at the exact code?

    Please also remove the code menu relocation snippet from the live site. (leave the menu in the original position)

    However, I think that moving the menu just reveals differently a problem with the coding of your header logo and link.

    I think the real problem is that this anchor link is not closed, as can be seen in this HTML output:
    <a href="http://www.draft.mompreneurmedia.com/"><img src="http://draft.mompreneurmedia.com/wp-content/uploads/2014/05/header.png" alt="Mompreneur Wellness"><div class="avenue-after-header-wrap"><div class="avenue-after-header widget-area">

    Where is the closing a>? – the link just extends through the remainder of the page. Fix your header logo and link and you ‘ve fixed your problem


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #107639

    MompreneurMedia
    Participant
    Post count: 4

    That did the trick. Thank you so much Tom!!

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Repositioned Nav Bar’ is closed to new replies.