• Resolved IestynR

    (@iestynr)


    Hey.

    Does anyone have and information as to how I can go about changing the link ‘Pages’ that’s on the top header, to just ‘About’? Right now you have to go Pages>About to access our ‘about’ sections, I’d like it just to be ‘About’ up there.

    I’m using Cleanr template, and here’s the site: https://www.thegallivantingjournals.co.uk:/blog/

    Thank you!

Viewing 7 replies - 16 through 22 (of 22 total)
  • No – it’s the page’s id – not its slug.

    Thread Starter IestynR

    (@iestynr)

    Yeah, just viewed the source (I’ve just changed the code back to yours again for you to have a quick look at) and I thin it’s being generated, here’s what it says:

    <ul id=”nav”>
    <li class=”about”>

    Does that look ok to you? Is there something I’m missing for it not to be displaying anything?

    Thread Starter IestynR

    (@iestynr)

    Woops, here’s the Source:

    <ul id="nav">
      <li class="about"><a title="" href="https://www.thegallivantingjournals.co.uk/blog/about-us/"></a>
    Thread Starter IestynR

    (@iestynr)

    Hmm, that’s not displaying. I’ll leve it up for a wee bit for you to see.

    Ah – I can see the problem!

    Try:

    <?php
    $page_id = 2; // id of the About page
    $page_data = get_page( $page_id );
    $page_title = $page_data->post_title;?>
    <li class="about"><a title="<?php echo $page_title;?>" href="<?php echo get_page_link($page_id);?>"><?php echo $page_title;?></a></li>
    <?php if( wp_list_pages('title_li=&exclude=2&echo=0') ) wp_list_pages('title_li=Pages&exclude=2'); ?>

    Thread Starter IestynR

    (@iestynr)

    Genius!!! Thank you so much esmi ?? That worked a treat!!

    Thank you so much for your help on this, it’s much appreciated. I seriously wouldn’t have a clue how to do this. Thank you for your time ??

    You’re very welcome. ??

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘How to I change the 'Pages' dropdown?’ is closed to new replies.