Support » Themes and Templates » Busiprof » page titles wrong

  • Resolved larry91403

    (@larry91403)


    How do I set the title of the page on archive pages? Right now it seems to be selecting the first post on the page instead of say the name of the CPT which would be more proper.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    Yes ,the Archive Page will show the most recent post In the Banner Strip

    Right, how do I fix that?

    Hi larry

    Create child theme using child theme creator plugin

    After that create banner-header-archive.php and archive.php file in child theme.

    Open the both file and copy paste one by one file code.

    Remove some line of code form banner-header-archive.php and add your hard-coded title text and description .

    For Example :
    <h2 class=”about_head pull-left”><?php the_title(); ?><span><?php bloginfo(‘description’);?></span></h2>
    To
    <h2 class=”about_head pull-left”>Your Archive Title Text <span>Your Archive Title Description </span></h2>

    Save it.

    After that open child theme archive.php file and link your banner-header-archive.php file like this type:
    get_template_part(‘banner’,’header’);
    To
    get_template_part(‘banner’,’header-archive’);

    Save it.

    It will resolved your issue.

    Thanks

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