Forum Support

Shape 5
March 28, 2024, 04:52:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: removing featured Images In posts  (Read 1240 times)
tjmg77
Jr. Member
**
Offline Offline

Posts: 17



« on: 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.
« Last Edit: December 06, 2012, 12:38:20 PM by tjmg77 » Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: December 06, 2012, 02:15:51 PM »

Edit line 100 of "/vertex/includes/s5_fw.php"

Change
Code:
  if(has_post_thumbnail()) {
to
Code:
  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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
tjmg77
Jr. Member
**
Offline Offline

Posts: 17



« Reply #2 on: December 06, 2012, 08:36:29 PM »

Where exactly is that located?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #3 on: December 07, 2012, 05:57:33 AM »

Edit line 100 of "/vertex/includes/s5_fw.php"

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

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
tjmg77
Jr. Member
**
Offline Offline

Posts: 17



« Reply #4 on: 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?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #5 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
tjmg77
Jr. Member
**
Offline Offline

Posts: 17



« Reply #6 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #7 on: December 10, 2012, 06:02:48 AM »

Sorry about that - I mis-typed.

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

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.