Frontpage only help!
I've been trying to look through the forum and use past suggestions but I am hitting a wall!
Our Front page is set to show our latest post in the reading prefs. What I am trying to do is have something only show up on the first front page, but it is still showing up on everypage I've tried (likely incorrectly) variations of the following without success PHP Code:
any help would be fantastic!! Thanks! Peter http://www.1linemedia.com |
It looks like you have not set the home page to be a static page (Your Settings -> Reading -> Front page displays: is set to "Your latest posts")
In that case PHP Code:
should work. Where did you put that code? It should go into index.php, right after PHP Code:
PHP Code:
|
You might also want to add a bit of space around the content inside of widgets, now that you've put a border around the widget. You can do that by adding the following to A. Theme Options -> Widgets -> Widget Content Box:
HTML Code:
padding: 5px; |
Hey Flynn!
Unfortunately I am getting this error: Code:
Parse error: parse error, unexpected '}' in /raid4/webraid/home/s/sis/1linemedia/wp-content/themes/atahualpa/index.php on line 16 Peter |
I just got it
PHP Code:
Thanks!!! Peter |
Sorry, I left out one { in the code above. Fixed now.
Yes, your code in post #5 is correct. |
I would like to do something similar. I want to include (event calendar 3 plugin):
<?php ec3_get_events(999); ?> on index.php but only have it display on my calendar page. The page title is: Calendar The page number is: /?page_id=146 Thanks for the help! |
Also...I'd really like to use this call to only display the calendar items in a certain category...if you happen to know the answer, I'd appreciate the knowledge!
Thanks again! |
Only on page with ID 146
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT -6. The time now is 06:13 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.