Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] How to add an extra text only to main static page


  #1  
Old Dec 8, 2010, 06:24 PM
Mykhailo
 
29 posts · Dec 2010
London
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
  #2  
Old Dec 8, 2010, 08:01 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
You would probably use a conditional statement. Search wordpress.org for conditionals.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Dec 22, 2010, 09:01 AM
Mykhailo
 
29 posts · Dec 2010
London
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.
  #4  
Old Dec 22, 2010, 09:08 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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 ?>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Dec 22, 2010, 04:11 PM
Mykhailo
 
29 posts · Dec 2010
London
Thanks, worked well

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a static front page creates extra Home page jillin Atahualpa 3 Wordpress theme 3 Oct 21, 2010 06:24 AM
[SOLVED] Change Text Format from Main Page Eddiemaus Center area post/pages 4 Aug 22, 2010 04:33 AM
Add extra images in page menu bar (but in it) marced Page & Category Menu Bars 0 May 19, 2010 03:07 PM
[SOLVED] How Do You Add Extra Space Between Category or Page Menu Items? rhythm Page & Category Menu Bars 4 Mar 15, 2010 03:08 PM
Main Page Body Text Formatting weiserma Header configuration & styling 1 Jul 18, 2009 03:17 PM


All times are GMT -6. The time now is 06:42 AM.


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