WordPress.org

Forums

Busiprof
[resolved] page titles wrong (4 posts)

  1. larry91403
    Member
    Posted 1 year ago #

    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.

  2. vibhorp
    Member
    Posted 1 year ago #

    Hello,
    Yes ,the Archive Page will show the most recent post In the Banner Strip

  3. larry91403
    Member
    Posted 1 year ago #

    Right, how do I fix that?

  4. Hari Maliya
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags