• hAtul

    (@free269)


    Hi guys,
    I hope I’m in the right forum to ask this question πŸ™‚

    I am working on a new theme that is based on the 2014theme.
    I have already edited my post view with CSS, and now I want the “Featured Image” to show up under the posts headline and text (actually I’m not using any text in my posts so it doesn’t really matter) and not above as it is in the default theme.

    So in every post (in the code it’s an <article> tag), I have to swap between the
    <a class="post-thumbnail" .......
    line, and the
    <header class="entry-header">........
    line.
    I tried it on my browser (using inspect element thing) and it looks great!

    So my question is how do I edit this?
    In what file?
    Can someone instruct me how to do this right?

    Thank you,
    Have a great weekend πŸ™‚

    p.s: I tried googleing this question and all I got was websites that explain how to edit posts in dashboard?

Viewing 3 replies - 1 through 3 (of 3 total)
  • darrinb

    (@dbmartin)

    check the content-featured-post.php file

    Thread Starter hAtul

    (@free269)

    Where is this file located?
    I can’t find it.

    Edit:
    Found it tnx πŸ˜€ !

    Edit #2: I swiched between the two tags and the page loads like before.
    Should I do something else for these kind of changes? :S

    darrinb

    (@dbmartin)

    if you look in the single.php file in your current theme directory, you’ll see:

    <?php get_template_part( 'content', get_post_format() ); ?>

    This function pulls one of the content-XXX.php files (listed in your current theme directory) based on what type of post you’re displaying. Any changes to how you’d like the post to display should be made in these files. Just make sure you’re editing the files in your current theme and that you refresh the page (clear cache) when viewing the page in your browser.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Edit a post structure’ is closed to new replies.