Created
February 22, 2018 20:22
-
-
Save anwerashif/36800007f0f223b93a421b2099584f11 to your computer and use it in GitHub Desktop.
Adding Content Before Your Posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Do NOT include PHP opening tag | |
| // Adding Content Before Your Posts | |
| function rs_content() { | |
| if ( is_home( ) ) | |
| echo '<div class="before-blog"><h1 class="entry-title blog" itemprop="headline">Premier Publishing Resource</h1>Our Free Resource Helping You with Business Growth Hacking and Revamp WordPress Website</div>'; | |
| }; | |
| add_action('genesis_before_loop', 'rs_content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment