WordPress.org

Ready to get started?Download WordPress

Forums

Make your background an advert (2 posts)

  1. GhostStorm
    Member
    Posted 2 years ago #

    Hello,

    I have seen a few wordpress sites around that have turned their background into an advert and I was wondering how they do this.

    Some sites have an image on the left instead of their background and again on the right. Some are top,left and right and I was wondering how do they do it?

    Is there a plugin?

  2. zimmi88
    Member
    Posted 2 years ago #

    My guess is that it's a custom theme or theme mod. If we presume a fixed width for the page content and that the content is centered on the page (leaving a gutter on the left and right sides), then one could create a custom background that is centered on the page and leaves the middle (where the content goes) blank, then modify the theme files to use this new background. The CSS properties background-image and background-position should solve the image placement for us nicely when used on the body tag.

    I hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags