Shape 5

Wordpress Club Themes => Real Estate - Club => : tjmg77 December 06, 2012, 12:28:02 PM



: removing featured Images In posts
: tjmg77 December 06, 2012, 12:28:02 PM
I want the featured images to show on the blog category pages but not in the posts themselves. Is there a way to edit this? I'm ok with updating php if you can tell me where.


: Re: removing featured Images In posts
: Tristan Rineer December 06, 2012, 02:15:51 PM
Edit line 100 of "/vertex/includes/s5_fw.php"

Change
:
  if(has_post_thumbnail()) {
to
:
  if(has_post_thumbnail() && !is_singular()) {

...that should set it to only include the thumbnail if the current path is not a single post or page.

Let me know if you have any difficulty.


: Re: removing featured Images In posts
: tjmg77 December 06, 2012, 08:36:29 PM
Where exactly is that located?


: Re: removing featured Images In posts
: Tristan Rineer December 07, 2012, 05:57:33 AM
Edit line 100 of "/vertex/includes/s5_fw.php"

{theme folder}/vertex/includes/s5_fw.php


: Re: removing featured Images In posts
: tjmg77 December 08, 2012, 05:07:48 PM
Awesome it worked. I would like to change it so it does not appear on the front page as well. Can you guide me to that?


: Re: removing featured Images In posts
: Tristan Rineer December 08, 2012, 07:17:04 PM
You can add "&& !is_frontpage()" the same way & place you added "&& !is_singular()".

It doesn't matter which order, just add it into the criteria for htat "if" statement.

That will narrow things down even more and tell it to only show the image on pages that are not single and not the front page of the site.


: Re: removing featured Images In posts
: tjmg77 December 09, 2012, 07:03:46 PM
I added that and got an error. I even tried putting in just "frontpage" and still got an error.


: Re: removing featured Images In posts
: Tristan Rineer December 10, 2012, 06:02:48 AM
Sorry about that - I mis-typed.

It's " && !is_front_page()" that you'll want to add.