• Resolved thecontemporaryteacher

    (@thecontemporaryteacher)


    Hello!

    I am wanting to know if there is a way to have the page titles look like the category titles. Like in a category it looks like = category name = …the page title doesn’t have the two = next to it. Is it possible to make it so that the page has the 2 =?

    Just let me know! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thecontemporaryteacher

    (@thecontemporaryteacher)

    Also, is it possible to remove the title of the page ONLY on the front page? In my case, it’s a page titled “home.”

    Thank you!

    Hi there,

    You need to customize page.php file to get the same look of page title like on category page. First you need to replace this line:

    <h1 class="entry-title"><?php the_title(); ?></h1>

    with this:

    <h1 class="entry-title"><span><?php the_title(); ?></span></h1>

    and then add this style to Appearance → Customize → Additional CSS:

    .page .entry-title{text-align:center;letter-spacing:2px;position:relative;margin:0 0 35px}
    .page .entry-title span{display:inline-block;max-width:100%;position:relative;padding:0 26px}
    .page .entry-title span:before,
    .page .entry-title span:after{content:"";position:absolute;left:0;top:50%;margin-top:-2px;width:20px;height:4px;border-top:1px solid #c4c4c4;border-bottom:1px solid #c4c4c4}
    .page .entry-title span:after{left:auto;right:0}

    To hide page title on static home page please add this css to Appearance → Customize → Additional CSS:

    .home .entry-page .entry-title {
        display: none;
    }

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Edit Pages’ is closed to new replies.