Featured images and sidebars – PLEASE HELP!

Viewing 3 posts - 1 through 3 (of 3 total)
  • #7670
    facesbyyasmin
    Participant

    Hi guys,

    I’m just trying to figure out two things actually.

    First of all, I managed to remove all the “posted by, on, filed under” stuff on my blog posts, but now the featured image is aligned to the right and i would like it centered on the page. how do i do that?

    Second, how do I remove the sidebar from single posts? Meaning, when I click on blog, the page that displays all my blog posts can have the sidebar, but if I open a single blog post, I don’t want the sidebar to be there. Please help!

    Here is the link to my website: http://facesbyyasmin.com

    #7940
    stargazer713
    Participant

    Download one of those plugins that allows for widget customization individually on posts

    #10797
    gavintfn
    Participant

    ok, so stargazer is not very helpful…

    first, copy the files before you change them…

    to remove posted by etc… apperance – editor – content.php

    delete lines like
    <li><?php _e( ‘Written by’, ‘minimatica’ ); ?> <?php the_author_posts_link(); ?></li>

    for the side bar,
    get the id of the post that you would like to exclude… this should be a number…
    you will go to apperance – editor loop-single.php.

    look for >?php get_sidebar(); ?<

    change for <?php if(!is_page(‘yournumber’)){ get_sidebar(); } ?>

    this says that if the page IS NOT your number than get the sidebar.
    once again make a copy… hit me back if there is problems.

    • This reply was modified 12 years ago by gavintfn.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.