How to remove default Post image on WP sidebar

7 replies
Hi all,

Calling All Developers --- Please help

I am using this free theme

Attachement:

Theme Preview: acmethemes.com/demo/?theme=supermag


The thing is, I am using this theme for a 'news syndication' site, and I don't need images in the posts.

The problem is, even though when there are no images used in a post, this theme adds a placeholder image "by default" for every post in the right sidebar.

So basically all I want is to get rid of this default image appearing in every post in the sidebar. I contacted the theme support and they suggested me that the option can be removed by using a WP child theme. The tragedy is, I am not good with development or CSS but can play with the code (copy/paste).

Please guide.
#default #image #post #remove #sidebar
  • Profile picture of the author Duc Aaron
    Open single.php or post.php by notepad and remove default Post image div
    {{ DiscussionBoard.errors[10609229].message }}
    • Profile picture of the author ahsonwp
      Originally Posted by Duc Aaron View Post

      Open single.php or post.php by notepad and remove default Post image div
      Thanks for your response.

      I have already checked the files in WP Editor for the DIVs in which the image is coming (it's coming through a widget I think), but there were no DIVs showing the code that is bringing the image. It would've been easy for me if the code was visible, but I think that code is hidden or something, hehehe.

      What to do now please?
      {{ DiscussionBoard.errors[10609236].message }}
  • Profile picture of the author noah.whitmore
    Simplest solution, you can simply add some custom CSS to the site's <head> to hide the images.

    Install the WordPress plugin 'Simple Custom CSS' - https://wordpress.org/plugins/simple-custom-css/

    Then, insert this CSS code...
    Code:
    .secondary-sidebar aside figure.widget-image {
        display: none;
    }
    That should take care of it.

    -Noah
    Signature
    No Pitch For The Moment - Just A Nice Hello.
    So... 'Hello'
    Feel free to PM me if you have any questions about my posts. I'd like to hear from you!
    {{ DiscussionBoard.errors[10610445].message }}
    • Profile picture of the author ahsonwp
      Originally Posted by noah.whitmore View Post

      Simplest solution, you can simply add some custom CSS to the site's <head> to hide the images.

      Install the WordPress plugin 'Simple Custom CSS' - https://wordpress.org/plugins/simple-custom-css/

      Then, insert this CSS code...
      Code:
      .secondary-sidebar aside figure.widget-image {
          display: none;
      }
      That should take care of it.

      -Noah


      Thanks mate. I'll do that.

      The plugin you mentioned, it is for adding CSS code right? The theme I mentioned already has an option where I can add CSS code, so I assume I don't need this plugin to add the code and can add it in the theme CSS option, right?

      Thanks again.
      {{ DiscussionBoard.errors[10611009].message }}
      • Profile picture of the author noah.whitmore
        Originally Posted by ahsonwp View Post

        Thanks mate. I'll do that.

        The plugin you mentioned, it is for adding CSS code right? The theme I mentioned already has an option where I can add CSS code, so I assume I don't need this plugin to add the code and can add it in the theme CSS option, right?

        Thanks again.

        Well, I have not looked at the admin area of this theme, so I can't be sure completely. But, based on what you've said here - yes, it sounds like you can simply put this CSS code into the theme option.

        I always suggest that plugin when I suggest inserting CSS code because it's such a simple little plugin. But, if you already have the ability to insert CSS from your theme, there's no reason to use the plugin.

        Let me know if it works for you!

        - Noah
        Signature
        No Pitch For The Moment - Just A Nice Hello.
        So... 'Hello'
        Feel free to PM me if you have any questions about my posts. I'd like to hear from you!
        {{ DiscussionBoard.errors[10611502].message }}
        • Profile picture of the author ahsonwp
          Originally Posted by noah.whitmore View Post

          Well, I have not looked at the admin area of this theme, so I can't be sure completely. But, based on what you've said here - yes, it sounds like you can simply put this CSS code into the theme option.

          I always suggest that plugin when I suggest inserting CSS code because it's such a simple little plugin. But, if you already have the ability to insert CSS from your theme, there's no reason to use the plugin.

          Let me know if it works for you!

          - Noah
          It worked like a charm mate. Many many thanks.
          {{ DiscussionBoard.errors[10612692].message }}
          • Profile picture of the author noah.whitmore
            Originally Posted by ahsonwp View Post

            It worked like a charm mate. Many many thanks.
            Glad to hear that. Happy to work out the issue with you. Best of luck with the site!

            -Noah
            Signature
            No Pitch For The Moment - Just A Nice Hello.
            So... 'Hello'
            Feel free to PM me if you have any questions about my posts. I'd like to hear from you!
            {{ DiscussionBoard.errors[10612703].message }}

Trending Topics