• calebo

    (@calebo)


    Hi,

    I new to wordpress and recently just custom my first theme.
    And have encountered a problem, with the design i was given, each entry would be accompanied by 1 image, and i’m expecting the user to upload the image via the WYSIWYG.
    The uploaded image must always align like a sidebar while the content flush on the right.

    There for my question is, is there some way of forcing the images uploaded for each entry to stay at a specific position?
    For example:
    <content>
    <sidebar>
    <image>
    </sidebar>
    <body>xxx</body>
    </content>

    Please have a look at the layout below to have a better understanding of what I’m trying to achieve here.
    https://dl-client.getdropbox.com/u/66414/layout.jpg

    Thanks. any tips/advice is greatly appreciated!

Viewing 1 replies (of 1 total)
  • stvwlf

    (@stvwlf)

    A good way to do this is to customize the theme. The images are not really in the sidebar, they are in a column to the left of the post text. So create a DIV in your content area that is floated left, setting a maxium width on that div.

    Then set your post text with a left margin wide enough to start to the right of the image.

    A good way to let the user enter the file location of the image is to use a post custom field. Your page display logic can retrieve the URL from the custom field and then display it in the left column div you set up for the image.

    Here is a page on using custom fields:
    https://codex.www.ads-software.com/Using_Custom_Fields

Viewing 1 replies (of 1 total)
  • The topic ‘How to custom image uploaded in WYSIWYG in a layout’ is closed to new replies.