kosmikkreeper
Member
Posted 3 years ago #
Hi guys.
Basically, I would like to add a page that links to one of my categories. Is this possible? Here's my Blog: http://www.yanikphotoschool.com. I want to add a "tutorials" page in my top menu that links directly to: http://yanikphotoschool.com/category/tutorials/.
I thought it would be easy enough and just change the permalink but it won't allow you to add a "/".
Can anyone help?
Why will you do that? It works without the backslash.
Do not try to create a page with the same permalink as your tutorials category. Instead, just add a menu link to your tutorials category in your theme's header.php.
kosmikkreeper
Member
Posted 3 years ago #
hi iridiax
Thank you for your suggestion.
Could you help me out with that? Code is gibberish for me so I wouldn't know how to add it.
This is the code I have in my body right now:
<div id="menu">
<li <?php if(is_home()){echo 'class="current_page_item"';}?>>" title="Home">Home
<?php wp_list_pages('title_li=&depth=1');?>
</div>
<div id="header">
<h1>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>
<h2><?php bloginfo('description');?></h2>
</div>
What would I add and where would I put it?
Thanks!
Put the following after <?php wp_list_pages('title_li=&depth=1');?>
<li><a href="<?php bloginfo('url'); ?>/category/tutorials/" title="Tutorials">Tutorials</a></li>
kosmikkreeper
Member
Posted 3 years ago #
That worked! Woohoo! Thx iridiax! :)