by TheCG
18 replies
  • WEB DESIGN
  • |
I am using the "The Professional" Theme and cannot figure out how to get rid of these "read more' buttons. I am trying to get rid of them in the posts in the slider and the pages in the bottom row of 3.

Can anyone here share the secret word?

Picture is attached.

Thanks!
#experts #wordpress
  • Take a look @ index.php....
    Signature
    WebDevelopmentGroup NYC & CA- Small Business Web Development, App Development, WordPress Development, Graphic Designs, Online Marketing, Local Marketing & more!. "Call us 1.800.219.1314 or message us!". Visit us today! "Now On Live Chat Mon-Fri.". www.WebDevelopmentGroup.org
    (Whitelable our Services)
    ===================================
    ==> #1 OFFLINE MARKETING FORUM ON THE WEB! <==
    www.OFFLINEMARKETINGFORUM.com
    (Register Now)
    {{ DiscussionBoard.errors[5421062].message }}
  • Profile picture of the author TheCG
    I did but I don't see anything that looks like it could be it.
    Signature

    Yes, by the way, I AM in the Witness Protection Program. I could tell you who I am but then I would have to kill you.

    {{ DiscussionBoard.errors[5421112].message }}
  • Profile picture of the author Pat Flanagan
    I'm not familiar with that exact theme, but you're seeing that because the template for the Index (home) page is likely set to show EXCERPTS rather than full content of the articles.

    In order to change that, first keep a backup copy of the unmodified template file. If you make a mistake, you can quickly re-upload the original to fix things back.

    You need to manually edit that template, which will require HTML and PHP knowledge. You can do this on your local copy and upload it, or use the Editor in Wordpress' admin section (this requires that the CHMOD settings of the template file be set to 755 or 777, depending on your server setup). Look for a tag that looks like this:

    the_excerpt()

    and change it to

    the_content()

    Save it and, if editing your local copy, upload the template. Clear your cache, reload the site and you SHOULD see the buttons are gone. Like I say, I haven't messed with that theme before.

    The downside of this is that if you publish a long post, it will scroll waaaaaaaay down your front page. You can get around this by, in the post itself, inserting this:

    <!--more-->

    wherever you want the text on the front page to stop displaying. This will, however, put the read more button in at the bottom of that post.

    So it's a give and take. Hopefully this helps you.
    Signature

    Product Launch Management & Strategic Product Marketing
    Contact me -- Skype: patflan42 Email: pat@JVwithPat.com

    {{ DiscussionBoard.errors[5421226].message }}
  • Profile picture of the author Pat Flanagan
    I should add that it won't ALWAYS be in the index.php file, it could be in a different template file. It all depends on how the theme is set up.
    Signature

    Product Launch Management & Strategic Product Marketing
    Contact me -- Skype: patflan42 Email: pat@JVwithPat.com

    {{ DiscussionBoard.errors[5421234].message }}
  • Profile picture of the author Istvan Horvath
    Maybe: home.php?
    (themes with that type of frontpage have quite often a home.php template file - and WP automatically will use it - if exists - to display the main page of a WP install)
    Signature

    {{ DiscussionBoard.errors[5421309].message }}
    • Profile picture of the author TheCG
      This is all that is in index.php



      <?php get_header(); ?>

      <div id="content-top" class="top-alt"></div>
      <div id="content" class="clearfix content-alt">
      <div id="content-area">
      <?php get_template_part('includes/breadcrumbs'); ?>

      <?php get_template_part('includes/entry'); ?>
      </div> <!-- end #content-area -->

      <?php get_sidebar(); ?>

      </div> <!-- end #content -->
      <div id="content-bottom" class="bottom-alt"></div>

      <?php get_footer(); ?>



      This is the only thing close to what you guys referred to that I found in the home.php file:


      <div class="hr"></div>
      <?php global $more;
      $more = 0;
      the_content(""); ?>
      <a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('read more','Professional'); ?></span></a>


      and it already has "the_content" in it.

      This is a booger.
      Signature

      Yes, by the way, I AM in the Witness Protection Program. I could tell you who I am but then I would have to kill you.

      {{ DiscussionBoard.errors[5421479].message }}
      • Profile picture of the author TheCG
        If I could even get this to work where I could control how much text it showed before the "read more" button I would be happy.

        Right now if I put a long article in, there is alot of text in the spaces. It really just puts the entire article in there and still puts the read more button at the end so it is sorta useless.
        Signature

        Yes, by the way, I AM in the Witness Protection Program. I could tell you who I am but then I would have to kill you.

        {{ DiscussionBoard.errors[5421554].message }}
        • Profile picture of the author BriteRise
          The read more buttons are typically generated through a css class. From what I see above class="readmore" might be the culprit.

          I also notice the 'includes/entry' - this is a seperate file sometimes you can't find from the WordPress admin. To explain - this is calling a template file within the theme files stored on your server. That file may also hold the problem.

          look in your css file - style.css (if using a child theme find the child theme css file you are using.

          locate this
          .readmore { }

          in between { } add this
          display:none;

          If you'd like me to. Give me a login and apss and I can get rid of it for you.
          {{ DiscussionBoard.errors[5421702].message }}
        • Profile picture of the author BriteRise
          got your pm but don't have permissions to reply. Anyways... send me an email with the url and admin login at jason @ BriteRise.com and I'll take a look.

          Thanks for asking.

          JD
          {{ DiscussionBoard.errors[5424398].message }}
      • Profile picture of the author alixwijaya
        Originally Posted by TheCG View Post

        ...
        This is the only thing close to what you guys referred to that I found in the home.php file:


        <div class="hr"></div>
        <?php global ;
        = 0;
        the_content(""); ?>
        <a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('read more','Professional'); ?></span></a>


        and it already has "the_content" in it.

        This is a booger.
        Easy, try this one
        just delete the code that I bold above
        {{ DiscussionBoard.errors[5429530].message }}
  • Profile picture of the author Pat Flanagan
    BriteRise, wouldn't that just not display the Read More buttons, while leaving the excerpts hanging? I guess I figured he wanted more than just a cosmetic change.
    Signature

    Product Launch Management & Strategic Product Marketing
    Contact me -- Skype: patflan42 Email: pat@JVwithPat.com

    {{ DiscussionBoard.errors[5422860].message }}
    • Profile picture of the author BriteRise
      You are correct. CG explained what we wants to do with the excerpt limit. Simple functions.php fix. Well I hope - depends on how the theme is built. He's sending me login to fix and i'll post the fix for future reference for everyone.
      {{ DiscussionBoard.errors[5424410].message }}
  • Profile picture of the author frenchsquared
    it is probably using a custom template, send me a link. I will give you the css to make them go away. This is a 2 minutes fix.
    {{ DiscussionBoard.errors[5424016].message }}
  • Profile picture of the author frenchsquared
    It was not using the excerpt guys.
    It was a custom link in home.php. A hard coded link that could not be edited in the ways you are thinking. I just comment the link out.
    {{ DiscussionBoard.errors[5425567].message }}
    • Profile picture of the author Pat Flanagan
      Originally Posted by frenchsquared View Post

      It was not using the excerpt guys.
      It was a custom link in home.php. A hard coded link that could not be edited in the ways you are thinking. I just comment the link out.
      Ah well, that's what I get for flying blind on a theme I haven't used. LOL One upside of Wordpress is the breadth of themes available. The accompanying downside is they're all constructed in different ways by different people.
      Signature

      Product Launch Management & Strategic Product Marketing
      Contact me -- Skype: patflan42 Email: pat@JVwithPat.com

      {{ DiscussionBoard.errors[5438896].message }}
  • Profile picture of the author frenchsquared
    The line you have in bold is the one I said to comment out.

    <!-- <a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('read more','Professional'); ?></span></a> -->
    {{ DiscussionBoard.errors[5430212].message }}
  • Profile picture of the author mapetshi
    .readmore { display:none } add this in style.css
    {{ DiscussionBoard.errors[5456011].message }}

Trending Topics