Forum Support

Shape 5
September 23, 2021, 01:58:46 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: Delete feature image from single post  (Read 456 times)
hellothere
Jr. Member
**
Offline Offline

Posts: 2



« on: April 17, 2016, 11:32:47 AM »

Hello

I have installed Fitness Center theme for wordpress and I'd like to know how can i delete feature image from single post (not in category view)

For example i need to delete it from here: http://test.foundationft.com/andrea-from-gbfm-update-3/

Thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: April 18, 2016, 09:06:22 AM »

That is not currently an option in the framework.  However, I believe I have a reasonably easy way for you to do it (it will be a global change though, not something that can be set per-post).


You will need to edit 2 files (they're both release specific, so the changes will stay, even if you install the Vertex Upgrade Patch  sometime in the future).

First, open {themedir}/theme-globals.php and make the following changes:
On line 95, change:
Code:
$s5_loop_tags['thumbnail'] = '<img alt="%post_title%" style="position:relative;float:left;padding-right:10px;" src="%thumb_path%" />';

To:

Code:
$s5_loop_tags['thumbnail'] = '<img alt="%post_title%" style="position:relative;float:left;padding-right:10px;" class="post-thumbnail" src="%thumb_path%" />';

Then, open {themedir}/style.css and add this to the bottom:

Code:
.item-page img.post-thumbnail{display:none !important;}



Those changes will make the Featured Image (Post Thumbnail) be hidden on any "single" view for a post or page. 



[Note: I am moving this topic to the correct board; please remember in the future to post theme/plugin specific questions to the board created specifically for the theme/plugin you are asking about.]
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
hellothere
Jr. Member
**
Offline Offline

Posts: 2



« Reply #2 on: April 18, 2016, 11:06:58 AM »

Solved. Thanks
Logged
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.