Post Title Change - previous post of this was closed without solution

Hello, I'm using the pro version. How can I change the post title on the left hand of the pages from <h2> to <h1> AND remove the a href on all posts and pages? Currently the code looks like this on a page:

<div class="hc_post_title_wrapper">
<h2><a href="http://celibre.com/page-name/">Page Name</a></h2>
but want to change to this on all pages/posts:

<div class="hc_post_title_wrapper">
<h1>Page Name</h1>
Sample of page would be http://celibre.com/acne-facts/ ;

Thanks!
Tagged:

Comments

  • edited October 2016
    HI

    For this find the single.php file (located in your theme folder << functions folder << ) .
    Open it and find the below line of code on line no  19 20 . 

    <div class="hc_post_title_wrapper">
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

    And replace it with   below line of code . 

    <div class="hc_post_title_wrapper">
    <h1> <?php the_title(); ?></h1>


    Step 2    To  manage the  font style of the title add the below css code into custom css box . 


    .hc_post_title_wrapper h1 {
        color: #404040;
        font-family: 'Roboto', sans-serif;
        font-size: 36px;
        font-weight: normal;
        line-height: 40px;
        margin: 0;
        word-wrap: break-word;
    }


    Thanks 
    Akhilesh
  • Thanks for the suggestion. But it didn't change the h2 to h1 for the title wrapper. Any other suggestions?
  • edited October 2016
    Hi
    You are using older version of   theme . 

    Kindly update the theme  with latest package . 
    To update the theme refer this link . 

    And tell me .  
    In the latest version of theme we all ready use h1 tag for page title . 


    Thanks 
    Akhilesh
  • I didn't use child themes so don't want to update and lose all of my custom changes.
  • HI

    Okay for this simply find the page.php file located in your  theme directory . 
    Replace the code of it with the code of page.txt  (Which is given below in the attachment ). 

    Let me know for further assistance . 

    Thanks 
    page.txt
    2K
  • Worked great! Thanks for your help!
  • HI

    Glade to know that ,Its work for you .

    If you really like our theme and support pls give rate us here . 
    Look forward see you again at .

    Thanks 
This discussion has been closed.