Jump to content

Archived

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

Aires

Hooker question

Recommended Posts

Aires

I am trying to display  a hook image only on the home page on my test site. I got it to work but I had to add a hook after a text box with nothing in it but with that method if i use another text box anywhere on the site the image will show up. Is there a trick into getting this to work only on the home page.

 

Thanks


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

I think i found a solution ... it looks like I had to make a static home page so i could us the page id in order to have that hook display just on that page. So I think this will work for me but if anyone has something to add please feel free.

 

Roll Tide


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You don't need to create a static page, you could use is_frontpage() or is_home() there is a difference between the two. You can find out more here:

 

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

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


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Aires

Awesome Thanks Danny.smile.gif


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×