bcworkz on "How to add an in-house ad into the margin of every blog post"

ساخت وبلاگ

mywarehousehome
Member
Posted 4 hours ago #

My site http://mywarehousehome.com/ was built using WordPress and the 'Origin' theme from Elegant Themes.

I've subsequently launched an e-shop and want to drive users who read the blog posts to click through to the e-shop: http://mywarehousehome.com/shop

I've designed a 120px x 600px skyscraper ad and am looking for a way to insert it into the right hand margin of every blog post (the white space visible when viewing on a desktop). Here's a blog post example: http://mywarehousehome.com/feature-radiators-5-timeless-designs/

I had thought this could be done in the post template?

The skyscraper ad would need to be hyperlinked to http://mywarehousehome.com/shop and ideally it would float, so that it remains visible as readers scroll down through each blog post.

As you can tell, I am still leaing. So all advice would be really appreciated.

Thank you.

bcworkz
Member
Posted 10 minutes ago #

Does your theme have a right sidebar option? Most themes do. If so you can add a text widget to the sidebar that contains the HTML for your ad. The rest can be managed with custom CSS. Your theme probably has some provision for adding custom CSS, check your theme's docs or inquire through their support mechanism.

If no sidebar is available, you could just add the HTML to the footer template, but you'll need to adjust the main body's width to make room for the ad. Floating content is easily positioned with CSS no matter where it occurs in the flow. A predefined sidebar is much simpler though.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 321 تاريخ : جمعه 15 مرداد 1395 ساعت: 2:20