Need help with wordpress

8 replies
  • WEB DESIGN
  • |
I recently put up a wordpress blog and I have two issues I don't know how to fix. One my adsense ads aren't showing up anymore, neither is the clickbank banner I put up. Just a few weeks ago they were showing up just fine, I didn't change anything but now they are both gone.

And two how do I make it so that people can't post comments? How do I remove the comment box at the bottom of the posts?

This is my website here:
Exercise Fitness and Weightloss
#wordpress
  • Profile picture of the author davidsbain
    I can see all the ads.

    For the comments
    Go into the admin of your wordpress blog
    select settings
    select discussion
    under default article settings
    uncheck the box next to 'allow people to post comments on new articles"
    {{ DiscussionBoard.errors[1976677].message }}
    • Profile picture of the author blogginvixen
      I too can see the ads.

      ...to answer your question about the comments section, if turning off the option to allow comments from the "edit/new page" section doesn't work, you can also completely remove them by deleting the line in you .php file/template that actually calls the "comments" section.

      It should look something like: "<?php if ($comments) : ?>" or "<?php comments_template(); ?>"

      Find either of those lines and delete them to get rid of the comments for good -- instead of worrying about having to deselect the "allow comments" option when you're creating a page or post.
      {{ DiscussionBoard.errors[1977714].message }}
      • Profile picture of the author msfunding
        Originally Posted by blogginvixen View Post

        It should look something like: "<?php if () : ?>" or "<?php comments_template(); ?>"

        Find either of those lines and delete them to get rid of the comments for good -- instead of worrying about having to deselect the "allow comments" option when you're creating a page or post.
        This is a great tip thanks v much.
        {{ DiscussionBoard.errors[1978680].message }}
        • Profile picture of the author highrider21
          Thanks everyone. I went to settings --> Discussion and unchecked "Allow people to post comments on new articles" but the comment box still shows on the current articles. I also tried deleting those php lines but that didn't seem to work. I didn't actually delete them I just commented out those lines but it should be the same thing. Then I saw the "Allow Comments" box on the post page and realized I just need to uncheck for each post. So now I am going back and unchecking that box for everypost I made.

          Also, I think I know why my ads aren't showing up. I have Adblock Plus installed in Firefox and that is preventing the ads from showing. I looked up my website in IE and the ads show fine.
          Signature

          {{ DiscussionBoard.errors[1979276].message }}
      • Profile picture of the author davewood
        Originally Posted by blogginvixen View Post

        to answer your question about the comments section, if turning off the option to allow comments from the "edit/new page" section doesn't work, you can also completely remove them by deleting the line in you .php file/template that actually calls the "comments" section.

        It should look something like: "<?php if () : ?>" or "<?php comments_template(); ?>"

        Find either of those lines and delete them to get rid of the comments for good -- instead of worrying about having to deselect the "allow comments" option when you're creating a page or post.
        Thank you so much blogginvixen! I've spent hours trying to find a solution to this. I'm currently on 3.1.1 and unticked the comments box in screen options and also as per usual in the discussions section. It worked for me by deleting <?php comments_template(); ?> in the single.php in my theme. I've only registered just to thank you for the tip
        {{ DiscussionBoard.errors[3732476].message }}
      • Profile picture of the author wariorart
        Originally Posted by blogginvixen View Post

        I too can see the ads.

        ...to answer your question about the comments section, if turning off the option to allow comments from the "edit/new page" section doesn't work, you can also completely remove them by deleting the line in you .php file/template that actually calls the "comments" section.

        It should look something like: "<?php if () : ?>" or "<?php comments_template(); ?>"

        Find either of those lines and delete them to get rid of the comments for good -- instead of worrying about having to deselect the "allow comments" option when you're creating a page or post.
        wow awesome.. thanks for this
        {{ DiscussionBoard.errors[3737513].message }}
        • Profile picture of the author jamesg3
          Also, to avoid missing things problems in the future or not seeing changes made - Be sure to Clear the cache in your browser and make sure that you do not have any new pop up blockers. If you have recently updated your browser be sure to check the settings. This is the one thing that I have to keep telling my clients. Once they do this regularly, they stop having alot of issues all of a sudden, lol. Of course it will not save you from site side or server side issues.
          Signature
          Serious Wordpress sites, html/css sites and flash sites Cheap. I provide killer SEO, easy to use e-commerce solutions and payment gateways. Check me out at Serious Website Design.
          Need Hosting with serious speed and power? 3.99 a month. Take a look here. Serious Website Hosting.
          {{ DiscussionBoard.errors[3743126].message }}
  • Profile picture of the author Interactiveseo
    All option available at back-end so please try to search you got there.
    And you can check theme also
    theme compatibility.
    {{ DiscussionBoard.errors[1978640].message }}

Trending Topics