1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to hide featured image in Wordpress Post

Discussion in 'WordPress' started by hammadfaisal007, Feb 9, 2012.

  1. #1
    Hi,

    I have recently created a wordpress blog of Gallery images
    http://gallery.pcabout.com/
    Code (markup):
    I want to hide the featured images occurring in the blog post. Is there any way to do it apart from deleting the featured image?
     
    hammadfaisal007, Feb 9, 2012 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Edit the theme files to remove the code that calls on the image to display.

    Could be single.php, archive.php, index.php or even a few more, not knowing your theme.
     
    hmansfield, Feb 9, 2012 IP
  3. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    The coding is completely different from other templates. I tried my best to solve this, but couldn't do so. The theme which I am using is "Minimatica". It is located here.
    http://wordpress.org/extend/themes/minimatica
    Code (markup):
    Please help me regarding this.
     
    hammadfaisal007, Feb 9, 2012 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Sometimes coders will bury functions that would normally be in single.php, index.php and so on, in other folders like an "Includes", "Library", and so on.
    Especially. if it's a theme with different template settings.
    Unfortunately, you are going to just have to look for the correct files.
     
    hmansfield, Feb 9, 2012 IP
  5. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    can't I edit the files through wp-admin? I have been trying to edit through admin page, but couldn't find the exact code
     
    hammadfaisal007, Feb 9, 2012 IP
  6. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #6
    I guess you could, if you have access to all of the files that way. I prefer to do it via FTP because the admin panel doesn't always show every folder and file.
     
    hmansfield, Feb 9, 2012 IP
  7. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #7
    I tried finding the code in single.php, but there ain't any code in single.php

    But I found few codes in widgets.php. Please have a look at the code and guide me how to hide the featured image in post

     
    hammadfaisal007, Feb 11, 2012 IP
  8. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #8
    Sorry, I'm not going to be able to do it that way. I would need access to your entire installation to first see how the thing is set up and coded, your settings, and your website to find and edit the issue.


    Removing a function of a theme is not something that I can just help you with blindly by looking at one file. There's a million theme's out there made by a million different people. No one just knows them all. Sometimes you just have to look around.

    Although I seriously doubt that the featured image code is going to be in your widgets file. It has nothing to do with widgets.
     
    hmansfield, Feb 11, 2012 IP
  9. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #9
    Yes, I do understand that featured image function will not be present in widgets file. But I tried to search in single.php but I couldn't find there.

    The theme is available here
    http://wordpress.org/extend/themes/minimatica
    
    Code (markup):
    It is different from other themes. Can you please have a look at the codes of the theme? It would be very much appreciated.
     
    hammadfaisal007, Feb 11, 2012 IP
  10. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Sorry man, I don't mind helping where I can, but this is a little more time consuming than just general knowledge. I just don't have the time to comb through theme files looking for snippets of code.

    But I can tell you this, I am positive that the featured image code that is displaying above your posts is in Single.php or single-post.php or what ever file controls the display of your individual posts. It looks like it might be called "colorbox" in the theme files.


    Also, if you have any image plug ins running, make sure to check the settings to insure that they aren't working against you.

    I'm pretty sure I am pointing you in the right direction, but unfortunately I can't do it for you.
     
    Last edited: Feb 11, 2012
    hmansfield, Feb 11, 2012 IP
  11. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #11
    Hello friend, I had a look at your given template,
    So I hope that you can remove featured image from your loop.php

    The code for it is look like

    <?php if( has_post_thumbnail() ) : ?>
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
    <?php the_post_thumbnail( 'homepage-thumb' ); ?>
    </a>
    <?php endif; ?>
    Best Wishes....

     
    ShinoRex, Feb 16, 2012 IP
  12. hammadfaisal007

    hammadfaisal007 Member

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #12
    sorry bro, it did not work. Anyways I have found the solution. Hope it would be the permanent one.
     
    hammadfaisal007, Feb 16, 2012 IP