Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 05:24 PM
Mykhailo
 
29 posts · Dec 2010
London
[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
  #2  
Old Dec 8, 2010, 07:01 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 08: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, 08:08 AM
lmilesw's Avatar
lmilesw
 
10,176 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, 03: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 05:24 AM
[SOLVED] Change Text Format from Main Page Eddiemaus Center area post/pages 4 Aug 22, 2010 03:33 AM
Add extra images in page menu bar (but in it) marced Page & Category Menu Bars 0 May 19, 2010 02:07 PM
[SOLVED] How Do You Add Extra Space Between Category or Page Menu Items? rhythm Page & Category Menu Bars 4 Mar 15, 2010 02:08 PM
Main Page Body Text Formatting weiserma Header configuration & styling 1 Jul 18, 2009 02:17 PM


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


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