get_permalink()
-
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 .
- This topic was modified 5 years, 8 months ago by .
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_permalink()’ is closed to new replies.