![]() | | ||||||||
| | #1 |
| Niche Market Analyzer War Room Member Join Date: Feb 2009
Posts: 434
Thanks: 28
Thanked 59 Times in 57 Posts
|
I want to add a featured product at the top of each wordpress page above all the posts. Basically it will have an image, a few lines of text and a couple of links. I'm not sure how to go about this or if it would even be easy for me to do. I'm not a coder, so I don't know if I'd need to change the page.php file or what. Any ideas? |
| | |
| | #2 | |
| Warrior Member Join Date: Mar 2007 Location: , , USA.
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
| Quote:
You can do this by changing your header.php file. You can put html code in a PHP file but you have to place it outside of the PHP code. When you see PHP code it always starts with <? and ends with ; ?>. You can also see what the code is doing when you look at it so you can see where to place your desired image and text. If you have a WYSIWYG html editor program like FrontPage or Dreamweaver, you can create the bit you want to add with it and then copy the html code to insert in the header.php file. I think your best bet is to create a table with as many rows/columns needed to accommodate the content. You will need to know the set width of your header and that info is likely to be in your style.css file which is located at Appearance, Editor and then look on the right side of the page at the bottom for the CSS files. The header characteristics will be spelled out in the CSS file. Keep your table width at 90% so you know you won't exceed the width of the header div. This can be kind of tricky sometimes. Some themes are easier to edit than others. It probably sounds harder to do than it is. Make a copy of your header.php file before you change anything so you can always paste it back into place if things go wrong. Best wishes, Leslie | |
| | |
| | #3 |
| Warrior Member Join Date: Nov 2009 Location: Aus
Posts: 10
Thanks: 1
Thanked 2 Times in 2 Posts
|
There are few wordpress plugins that you can use to achive this, chk out followin urls and you can surely pick one you like, h**p://impnerd(dot)com/featured-posts h**p://featurific(dot)com/ffw h**p://www(dot)d13design(dot)co(dot)uk/wordpress/d13slideshow/ p.s. - replace * with a t and (dot ) with a . |
| | |
| | #4 |
| Edwin Boiten War Room Member Join Date: Sep 2006 Location: The Hague,Netherlands.
Posts: 588
Blog Entries: 1 Thanks: 206
Thanked 128 Times in 80 Posts
|
Yeah the easiest solution is using a plugin because basicly what you want is a ad at the top of each post so a plugin like Advertising Mgr for Wordpress - Overview - OpenX Plugins should do the trick. If you need a custom solution pm as I can help you with that also Edwin |
|
All my products - an overview is at : http://edwinboiten.com | |
| | |
| | #5 |
| Niche Market Analyzer War Room Member Join Date: Feb 2009
Posts: 434
Thanks: 28
Thanked 59 Times in 57 Posts
|
Thank you everyone for your help. I'll take a look into each your ideas and see which works best for me.
|
| | |
| | #6 |
| Active Warrior War Room Member Join Date: Aug 2008 Location: Missouri, USA
Posts: 63
Thanks: 2
Thanked 11 Times in 9 Posts
|
I agree with Edwin, using a plugin would solve this. One that comes to mind is WP Greet Box. It should do what you need.
|
| | |
| | |
![]() |
|
| Tags |
| featured, products, wordpress |
| Thread Tools | |
| |
![]() |