BuddyBoss Home – Web Support Forums Themes OneSocial theme Make the articles titles appears before the content

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #66787
    @jeffghost

    Hi everyone,

    I’m using pretty images with titles on it as featured images. So i’ve use CSS to disable the main title on the featured images with this code :

    .single-post .entry-header.has-image h1 {
    color: rgba(0, 0, 0, 0);
    font-size: 55px;
    line-height: 1.4;
    margin: 0;
    padding: 0 70px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0);
    }

    But now, i really would love to see my title at the beginning of each post, right before the content. How can i do this ?

    Thx for your help.

    Answers

    #66974

    Anonymous
    @

    Hi @jeffghost, For this you will have to edit content.php

    Copy the content.php from parent theme to child theme at same path onesocial-child/template-parts/content.php

    And paste the code <h1 class="entry-title"><?php the_title(); ?></h1> after line no. 90

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Make the articles titles appears before the content’ is closed to new replies.