Jump to content

Archived

This topic is now archived and is closed to further replies.

rockydude

Pagelines - Above the first post

Recommended Posts

rockydude    0
rockydude

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
Danny    1,327
Danny

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


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×