Home Forums Business Consultr Remove Featured Image from page only

Viewing 3 reply threads
  • Author
    Posts
    • #2283
      Anonymous
      Inactive

      Hello,

      I am trying to figure out a way to remove a featured image from the content of a page (or post) while still having it show up in the slider on my homepage. Any suggestions?

      link to page in question: http://www.vlcshannontest.com/what-makes-us-unique/

      Thanks!

    • #2287
      keonthemes
      Keymaster

      Hello,

      By default, there is no any option to hide the feature image in post or page. But you can achieve that from CSS code. Please follow the steps and instruction to do that;

      Go to Dashboard > Appearance > Customize > Additional CSS > Copy and Paste below CSS and click publish button.

      // For page feature image

      body.page.page-id-72 article.hentry .post-thumbnail{
      display: none;
      }

      // For post feature image
      body.single.postid-72 article.hentry .post-thumbnail{
      display: none;
      }

      Note: The “page-id-72” and “post-id-72” classes are dummy. You can find the classes form the page url.

      Thanks.

    • #2297
      Anonymous
      Inactive

      Thanks! That worked.

      I am now wondering, is there a way I can remove the preview text from the slider on the main page (but leave the title)?

      Thanks for all your help!

    • #2299
      keonthemes
      Keymaster

      Hello,

      Please add this CSS code;

      .block-slider .slide-item .post-content-inner-wrap .content {
      display: none;
      }

      Thanks.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.