[SOLVED] How to add an extra text only to main static page
How to add an additional content (let say an advertised product) using a widget or some sort of container to make sure it’s only added to a front static page or permalink page either within a content or right after an article?
Thanks |
You would probably use a conditional statement. Search wordpress.org for conditionals.
|
Hi lmilesw,
I found the information you referred to http://codex.wordpress.org/Conditional_Tags I have tried different code variations with no success the code either makes my front static page content disappear or just shows row code in the page. I have tried putting a code in "Style & edit Center column" > in the “The LOOP" section at the end of the code which is in there already. <?php if ( is_front_page() ) { ?> (removes everything on the page) if (is_home() || is_single()) { the_content(); } (Didn't help either) I have made a short video that you can see where the problem is and what I have tried http://screencast.com/t/3HrgnEiRe Many Thanks Mike M. |
You need to add another small bit of code as below.
PHP Code:
|
Thanks, worked well :)
|
All times are GMT -6. The time now is 06:08 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.