• Resolved caregiw6

    (@caregiw6)


    I am using the showcase template for my website. However, I don’t want all of the blogs to show on the front page. I have a tab called blogs and I think that’s where people will go to read them and respond. I don’t want to get rid of the showcase template. Can I do something to alter the structure and eliminate the blogs.

    Secondly, same topic = blogs – is there a way to use an abstract of the blog – a short description and a link that reads something like “Read more…” that opens the blog. I think the website is going to be too big with every blog showing.

    https://www.caregiveronline.org.

Viewing 9 replies - 1 through 9 (of 9 total)
  • edit showcase.php …. https://www.ads-software.com/support/topic/remove-recent-posts-in-footer-on-static-page?replies=4#post-2714815

    be aware that without a child theme, an upgrade of Twenty Eleven will erase all your customisations.

    to have excerpts instead of the full posts, edit content.php, and change this line:

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>

    for instance to:

    <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search ?>
    Thread Starter caregiw6

    (@caregiw6)

    Hi – https://www.caregiveronline.org. I am a neophyte at html so I appreciate your edit showcase.php 4#post-2714815. I did create a child theme and have activated it. I am familiar with files. I’m assuming that i’ve done it right. I copied the showcase.php file from Twenty eleven. I changed the <section class=”recent-posts”> as you described to </section><!– .recent-posts –>. (This line is posted twice in showcase.php. I tried to change each and both. However it didn’t eliminate the blog from the showcase style. I didn’t try to do excerpts yet. I’m assuming that I will copy content.php from Twentyeleven to Twentyeleven-child. What am I missing.

    Caregiw, Nice site you have there. The blog button is fine. When you roll over your mouse, it will come with the drop down menu. Do you want to get rid of that button? If so you can simply do that from wp admin panel.

    I changed the <section class=”recent-posts”> as you described to </section><!– .recent-posts –>.

    simply remove that section.

    Thread Starter caregiw6

    (@caregiw6)

    Hi alchymyth. I removed that section which was showing in two places but the recent posts continues to show. In HTML parlance, why would the entire section on recent posts be left rather than taking that out if I don’t want the Recent Posts to show on showcase? What else can I do to get rid of recent posts (other than use the default page. I don’t like the wide margins on default and the large header that reads Home or Blog).

    remove those lines and everything inbetween:

    <section class="recent-posts">
    and all the code here
    until and including
    </section><!-- .recent-posts -->
    Thread Starter caregiw6

    (@caregiw6)

    Thanks for hanging in there alchymyth. I think I may have made a mistake as I copied the file from twentyeleven to twentyeleven-child. The problem that I’m seeing is I’m wondering if positioning the twentyeleven file in the child site – won’t any changes I make only go to the parent site?

    I’ve tried to remove everything in between <section class=”recent-posts”>
    and all the code here
    until and including
    </section><!– .recent-posts –> as you said, but no changes occurred in either the twentyeleven child or parent theme. So, I pasted the entire section back in (hopefully in the right place). What am I missing? I’m newer to HTML though I am reading and learning. Is there anyway I can authorize someone to change the code for me as I’m concerned that I’m going to wreck all of my work. Recapping…I have the showcase template on Home and Blog page. I don’t want the blog posts to be included on the page. How can I remove the posts from both pages allowing me to use the showcase format. Thanks for your help.

    if you copy showcase.php into the child theme, and edit it there, then any changes chould show when you have the child theme activated.

    deleting a section of the code is definitively a change that has to show.

    here is a showcase.php copy where the ‘recent posts’ section is removed;

    https://pastebin.com/UACD1PFy

    you might need to clear the browser cache (press ‘CTRL F5’ or ‘reload’) after you have made changes.

    ps:
    you could hide the ‘recent posts’ with this addition to style.css of the child theme:

    section.recent-posts { display: none; }

    Thread Starter caregiw6

    (@caregiw6)

    Hi alchymyth…Yay! I finally changed the showcase template and got rid of the recent posts! The change seemed to be in how I was editing the showcase.php file. I kept erasing the section of code but it wasn’t erasing. I then looked at the editing function on the file. I also erased between all the code between but not including <section and </section><!– .recent-posts –>. Finally, I reloaded the file and it worked. Thanks for your help. I do learn by trial and error. Last question. I am currently using the Twenty eleven child theme as the original theme was not changed. I had to change the header but otherwise it seems ok. Is it? https://www.caregiveronline.org.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Showcase page set up’ is closed to new replies.