Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1007462
    cmeklir
    Participant

    JUST AFTER I POSTED THE ONES WHERE I ENTERED A TITLE STARTED TO DISPLAY IT BUT I DON”T GET A TITLE UNLESS I ENTER IT On this page:
    http://0e8.7cd.myftpupload.com/portfolio-category/landscapes-nature/
    The tile should read ‘Landscapes and Nature’
    That’s what I have entered in the title field for the category.
    But whether I leave that blank and expect it to come from the slug or enter something in those fields, all the portfolio categories are titled Category Archive. I’m guessing either I’m doing something wrong or I need to change the code below in Integrity _landmarkheader.php?
    Looked in another thread but hissolution didn’t work.
    `<?php

    $meta = x_get_taxonomy_meta();
    $title = ( $meta[‘archive-title’] != ” ) ? $meta[‘archive-title’] : __( ‘Category Archive’, ‘__x__’ );
    $subtitle = ( $meta[‘archive-subtitle’] != ” ) ? $meta[‘archive-subtitle’] : __( “Below you’ll find a list of all posts that have been categorized as “, ‘__x__’ ) . ‘<strong>“’ . single_cat_title( ”, false ) . ‘”</strong>’;

    ?>

    <header class=”x-header-landmark x-container max width”>
    <h1 class=”h-landmark”><span><?php echo $title ?></span></h1>
    <p class=”p-landmark-sub”><span><?php echo $subtitle ?></span></p>
    </header>`

    #1007569
    Jade
    Moderator

    Hi there,

    I have just checked the page and it seems to be displaying the correct title. See screenshot below.

    Kindly have a look and let us know if you need further help. Thank you.

    #1008935
    cmeklir
    Participant

    Yes as I said it works now as long as I fill in that custom title field but it doesn’t pick up the page name without it. Not an issue for this site as it will be a limited number of pages but it doesn’t seem to be working right. Thx.

    #1009012
    Christopher
    Moderator

    Hi there,

    Yes, you should add category title, the field won’t be filled automatically.
    Is that your question?

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1007462 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>