Okay
  Public Ticket #220698
Recent posts / Remove classes / Home page
Closed

Comments

  • Kevin started the conversation

    On my home page, I am displaying recent posts. The title of that section is (Recent posts / View All Posts). I want to remove all the CSS classes for that H2 element. I can't figure out how to do this. I modified the template-home-2.php file. But that has no affect. Do I need to refresh something?

  •  8,839
    Tahir replied

    Hey Kevin!

    Add this into the Custom CSS box located in your Salient Options panel and change the values as per your liking:

    .home h2.recent-posts-title {
    	font-size: 12px!important;
    	letter-spacing: 1.5px!important;
    	margin-bottom: 7px!important;
        }
    

    Cheers


    ThemeNectar Support Team 

  • Kevin replied

    Hello Tahir,

    I want to remove the classes for this h2 element. I don't want this text to be in upper case and have a special font.

    Regards,

    Kev

  •  8,839
    Tahir replied

    Add this into the Custom CSS box located in your Salient Options panel :

    .home h2.recent-posts-title {
    	font-size: 12px!important;
    	letter-spacing: 1.5px!important;
    	margin-bottom: 7px!important;
    	text-transform:none;
    	font-family:'Open Sans'
        }
    
    
    

    Thanks


    ThemeNectar Support Team 

  • Kevin replied

    If I remove the classes for this h2 element, it looks fine. Can you tell me which PHP file to modify?

  •  8,839
    Tahir replied

    Hey Kevin!

    You can edit the recent posts code in here "salient\nectar\tinymce\shortcode-processing.php" . 

    Thanks


    ThemeNectar Support Team