• Resolved erinreed

    (@erinreed)


    Hiya,

    I’m trying to set up a new category (the school wear site) in the header. Because we have a custom theme, I’ve been using the theme editor. What I’m trying to do is have that category take the user onto a new site. I’ve managed to create the category in the header but I cant figure out how to get a link on the editor.

    This is the part of the code I’m having a problem with:

     <header class="lp">
            <div class="container">
                <div class="row">
                    <div class="logo">
                        <a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/assets/images/logo-lg.png" width="135" height="34" alt="<?= wp_title(); ?>" /></a>
                    </div>
                    <div class="navcont">
    		    <a href="<?= get_permalink(); ?>">THE SCHOOL WEAR SITE</a>
                        <a href="<?= get_permalink(126); ?>">ABOUT US</a>
                        <a href="<?= get_permalink(118); ?>">CONTACT</a>
                        <?/*<a href="javascript:;" class="nav-dropdown">MORE</a>*/?>
                        <a href="<?php bloginfo('url'); ?>#builder" class="order"><button>ONLINE QUOTE</button></a>
                    </div>
                </div>
            </div>
        </header>

    As you can see the get_permalink() for both about us and contact have numbers which I assume are retrieving the links from another page on those lines. But I can’t find the page with those links on the lines. Any advice would be great!

    Kind regards.

    • This topic was modified 5 years, 8 months ago by erinreed.
    • This topic was modified 5 years, 8 months ago by erinreed.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Stef

    (@serafinnyc)

    I almost feel like you’re trying to add a custom link to the main menu or a widget menu?

    You don’t need to add any code for this. Simply add a custom url link and add it to whichever menu you want.

    Thread Starter erinreed

    (@erinreed)

    Well I figured it out and I couldn’t do that because the header isn’t an actual menu therefor it wouldn’t have worked, thanks though.

    Stef

    (@serafinnyc)

    Oh the header is not dynamic wow. Super easy to make it dynamic if you ever need to. Here’s a decent tutorial should you ever want it to be.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_permalink()’ is closed to new replies.