• 0
Sign in to follow this  
Followers 0

Pagelines - Above the first post

Question

Posted · Report post

Hello,

i need to add some php code above the blog's first post. does anyone know which php file i need to edit? I am trying to add some contents only on the homepage above the first post.

 

thank you

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Hi,

 

You should use a hook, editing the core code is not recommended nor supported.

You can use ActionMap or Hooker to assist you in adding custom PHP code above your first post location. See here for more information - http://docs.pagelines.com/advanced/hooks

 

To add this custom code to your homepage only, you will need to also use the following in your code.

 

http://codex.wordpress.org/Function_Reference/is_front_page

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0