How to show announcement on all pages?

[ad_1]

ying

(@yingscarlett)

Hi there,

It would be easy to achieve if you have GP Premium, you just need to use a hook element.

If you do not have GP Premium, it will require some coding.

Try this PHP code:

add_action('generate_after_header', 'announcement');
function announcement() {
echo "add the announcement html here";
}

Thank you!

What do you mean by use a hook element?

ying

(@yingscarlett)

It’s a GP premium feature.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer