Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] How to add an extra text only to main static page (http://forum.bytesforall.com/showthread.php?t=11608)

Mykhailo Dec 8, 2010 05:24 PM

[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

lmilesw Dec 8, 2010 07:01 PM

You would probably use a conditional statement. Search wordpress.org for conditionals.

Mykhailo Dec 22, 2010 08:01 AM

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.

lmilesw Dec 22, 2010 08:08 AM

You need to add another small bit of code as below.
PHP Code:

<?php if( is_front_page() ) { ?> 
Put code you want to show here
<?php ?>


Mykhailo Dec 22, 2010 03:11 PM

Thanks, worked well :)


All times are GMT -6. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.