• Resolved Trevoris

    (@trevoris)


    Hi, Im new to wordpress and trying to get a few things sorted out. Any help would be really appreciated.

    When I add an image to a blog post I set it as centered, but text still wraps around the side a bit. And when I add youtube videos I leave a space on each side of the video so it’s not touching the text, but one side always touches.

    And my other question. On my PC images and titles look normal, but on my laptop they have a blue border and the titles blend together like they have been smirred. Any suggestions?

    Thanks alot.

Viewing 13 replies - 1 through 13 (of 13 total)
  • You will probably not be able to get any suggestions unless you post a link to your site.

    Thread Starter Trevoris

    (@trevoris)

    Good point. Thanks for the suggestion.

    https://www.modernmanfitness.com/

    I’m not sure if perhaps there is another way I should be adding images.

    In style.css at line 284, you have this;

    .post-entry img {
       float:left;
       margin:0.4em 0 0 1em;
       padding:0 10px 10px 0;
    }

    The float: left; is overriding aligncenter which has no float, and margins which override the margin ‘auto’ specs, causing text to show up on the right of the image. Try commenting out both of these lines.

    .post-entry img {
       /* float:left; */
       /* margin:0.4em 0 0 1em; */
       padding:0 10px 10px 0;
    }

    Hope that helps.

    Thread Starter Trevoris

    (@trevoris)

    Thanks vtxyzzy,

    Do you mean remove the ” float left” part or both blocks entirely you show above. Sorry I’m kind of clueless with wordpress. I’m guessing the theme creator has it set this way.

    float: left; is overriding aligncenter which has no float, and margins which override the margin ‘auto’ specs

    Both should be changed. But, if you don’t like the results, you can always change back.

    Thread Starter Trevoris

    (@trevoris)

    Thanks! sorry I wasn’t to awake I didn’t realize you posted the changes to make last night. I copy pasted it and the problem is fixed I believe. What exactly does the extra stuff add.

    /* float:left; */
    /* margin:0.4em 0 0 1em; */

    Thanks again

    It doesn’t add – it subtracts. The two lines are commented out so they no longer take effect. Both of those items were overriding the behaviour you want. By commenting them out, they no longer do that.

    float: left; was causing images to float to the left of the area, but you wanted them centered.

    margin:0.4em 0 0 1em; was defining absolute margins, allowing the text to flow to the right of the left-floating images. Removing it allowed the margin-auto to expand the image area to both edges, preventing text from flowing around the image.

    Thread Starter Trevoris

    (@trevoris)

    Thanks that makes perfect sense. This sounds like a better option then deleting everything.

    Makes it easier to undo if it is not what you want!

    vtxzzy

    I have try a code from you to display in a page template only posts that containing specifics keywords (several keywords that are in the title of the post or in the content)

    I ve try several code
    This one to display posts that contains helena or Bob words

    $keyword = ‘helena OR Bob’; // Set this to the keyword
    function mam_posts_where ($where) {
    global $mam_global_where;
    if ($mam_global_where) $where .= ” $mam_global_where”;
    return $where;
    }
    add_filter(‘posts_where’,’mam_posts_where’);
    $mam_global_where = ” AND $wpdb->posts.post_content LIKE ‘%$keyword%'”;

    query_posts(‘posts_per_page=5’);

    It doesn’t work. Can you help me pleasssssssse.

    Please start another thread for this topic. I will try to help you there. Do not reply again to this thread. It is ‘Resolved’.

    Or, email me at

    mac =at= mcdspot =dot= com

    OK I will look at it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Content Wrapping Images/ Adjusting Text Font ( Help )’ is closed to new replies.