• Resolved strung out

    (@strung-out)


    at the moment, my post title appears above a thumbnail and post excerpt. how do i move it to the right of the thumbnail instead?

    i’m sure there’s something very simple to alter, but being a beginner still, i can’t find the right piece of code to change. my website is http://robots-and-spaceships.com/

Viewing 15 replies - 1 through 15 (of 18 total)
  • It would be a lot easier to first move <?php the_post_thumbnail();?> in index.php so that it came before <h2 class="entry-title>.

    Thread Starter strung out

    (@strung-out)

    i don’t have either of those in index.php

    my whole index.php template is

    [Code moderated as per the Forum Rules. Please use the pastebin]

    would it be somewhere else?

    If you have a loop.php file, try looking in there.

    Thread Starter strung out

    (@strung-out)

    ok, i found these similar lines in my loop file and moved the first higlighted line to underneath the second highlighted line… http://wordpress.pastebin.com/HQacmi91

    that just seemed to move my post title to underneath the thumbnail though, which isn’t quite what i wanted.

    Correct – but that was only the first step.

    Thread Starter strung out

    (@strung-out)

    aha! sorry πŸ™‚

    so what is the next step after i’ve moved everything to underneath the thumbnail?

    Thread Starter strung out

    (@strung-out)

    i’m guessing i need to do something to the thumbnail code to make the text hang to the right of it? this is the code i have so far, which puts the thumbnail above all the other information… http://wordpress.pastebin.com/aNMWKSia

    or do i need to add some code to all the other info to make it cling to the right hand side of the thumbnail?

    Thread Starter strung out

    (@strung-out)

    actually, i must be doing something wrong. i just noticed that when i move the post title and other info to below the thumbnail, he post titles disappear from my category page. very odd.

    i’ll put the whole code up on pastebin, because i have no idea where i’m going wrong…

    code with post title above thumbnail http://wordpress.pastebin.com/9Nq0qcCc
    code with post title below thumbnail (but post titles disappear in category page) http://wordpress.pastebin.com/MRT4Xsd5

    roughly line 122 onwards on both dumps.

    Don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

    Thread Starter strung out

    (@strung-out)

    i’ve created a child theme. i’m assuming i’ve done it correctly?

    Thread Starter strung out

    (@strung-out)

    ah, that looks much better. and now what’s the process of getting the thumbnails to float to the left of all the text?

    Edit style.css and change:

    #content .entry-title {
        color: #0066CC;
        font-size: 18px;
        font-weight: bold;
        line-height: 1.3em;
        margin-bottom: 0;
    }
    .entry-content, .entry-summary {
        clear: both;
        padding: 6px 0 0;
    }

    to:

    #content .entry-title {
        color: #0066CC;
        display: inline;
        font-size: 18px;
        font-weight: bold;
        line-height: 1.3em;
        margin-bottom: 0;
    }
    .entry-content, .entry-summary {
        padding: 6px 0 0;
    }
    Thread Starter strung out

    (@strung-out)

    wow, that looks absolutely brilliant. thank you so much for your help and patience.

    i promise not to ask quite so many silly questions from now on πŸ™‚

    No problem. And the question/issue was far from silly. πŸ™‚

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘moving position of post titles on front page.’ is closed to new replies.