Featured Products in Wordpress

5 replies
  • WEB DESIGN
  • |
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?
#featured #products #wordpress
  • Profile picture of the author LAG
    Originally Posted by TommyGee View Post

    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?
    Hey TommyGee,

    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
    {{ DiscussionBoard.errors[1372740].message }}
  • Profile picture of the author AfroSamurai
    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 .
    {{ DiscussionBoard.errors[1373238].message }}
  • Profile picture of the author edynas
    Banned
    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
    {{ DiscussionBoard.errors[1373378].message }}
  • Profile picture of the author Tom Ryan
    Thank you everyone for your help. I'll take a look into each your ideas and see which works best for me.
    Signature


    {{ DiscussionBoard.errors[1373494].message }}
  • Profile picture of the author tknoppe
    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.
    Signature

    Traci Knoppe, OBM, Launch & Project Manager
    Your Web Tech Team

    {{ DiscussionBoard.errors[1375444].message }}

Trending Topics