• Resolved davemcc

    (@davemcc)


    Hi

    Can anyone help me with the following:

    I edit a page in WPs admin and align my images to the right with text around them. However when I go to the page I have created the images are justified left and the text is above/below.

    I am making my own template and here is a link to the page I refer to:
    https://paintapot.org/beecraft/beekeeping-information/general

    I have obviously missed something out when adding the code to my theme!

    Nay help greatly appreciated!!

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    Things will rarely look the same in the editor as on the site as the editor does not reference the theme’s stylesheet.

    The problem you are having is typically when a theme does not contain styling for the alignleft and alignright classes that the WP media library adds to the IMG tag.

    I suggest adding these to your stylesheet as a starting point. You can adjust the padding as needed:

    .alignright { float: right; padding: 15px; }
    .alignleft { float: left; padding: 15px; }

    Thread Starter davemcc

    (@davemcc)

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page formatting in my WP template. Help!’ is closed to new replies.