• Hello,
    I am using Astra free theme and would like to add a page title to News page. Can I do this using Dashboard customisation or should I edit a php file?

    I have tired both but so far with no luck.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @tou,

    The News page, is it the Blog page, the page where all of your Posts are listed in?

    You can use the following snippet to add a page title on the Blog page

    add_action('astra_template_parts_content_top', 'custom_blog_header',10);
    function custom_blog_header(){
    	if(	is_home() ){
    		echo '<h1 class="entry-title astra-blog-header"> Blog </h1>';
    	}
    	return ;
    }

    I hope it will help.

    Kind regards,
    Herman ??

    Thread Starter tou

    (@tou)

    Yes, sorry, I meant the blog page.

    Where should I put the snippet into?

    Thank you!

    Hi @tou,

    You can add that code using a plugin or child theme. Please refer to this doc for more on that.

    Let us know if you need more help, otherwise please mark the topic as Resolved.

    Have a nice day and stay safe!

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page Title on News page’ is closed to new replies.