• OK, so I am testing out a theme of mine (it’s my first).

    But for some reason, all of the images lost their alignment.

    The alignment still shows properly in TinyMCE but not when displayed on the pages. See for yourself: https://www.hospiceinform.net/

    Any idea why this is happening?

    Thanks ..

Viewing 4 replies - 1 through 4 (of 4 total)
  • You’ve got a class on your image called alignleft, yet nothing in your style sheet.

    You need to add this:

    .alignleft {foat:left; padding: 0 10px 10px 0;}

    to your style sheet.

    You will need to do something similar to alignright if you want to float images to the right.

    Thread Starter cscott5288

    (@cscott5288)

    Oh, I thought that WordPress had its own custom styles somewhere. Thanks.

    Thread Starter cscott5288

    (@cscott5288)

    I am using my own theme which I am testing before using it on my site.

    Here is the sidebar:

    <div id=”sidebar”>
    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar(“Right Sidebar”) ) : ?>

    <?php wp_list_categories(‘title_li=<h2>’ . __(‘Categories’) . ‘</h2>’ ); ?>

    <?php wp_get_archives( $args ); ?>

    <?php wp_list_comments( $args ); ?>

    <?php endif; ?>

    </div>

    Here is the register for the sidebar in functions.php

    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘name’ => ‘Right Sidebar’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2>’,
    ));

    Thread Starter cscott5288

    (@cscott5288)

    Ooops, sorry, I posted this in the wrong thread :(. Ignore that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘images not aligning’ is closed to new replies.