• Resolved WilliamVaughan

    (@williamvaughan)


    First… I Love the theme… amazing that it’s a free theme.

    I’m helping a friend with her first website and I pretty much have my friends wordpress site all set for her to fill in the copy and add any additional data she wants. There are only two issues that I couldn’t address on my own and would love your help if you can.

    I only want the “posts” to be on a page that I have titled “Blog”. It’s the only place on the site that I plan to have posts with the rest of the site being static pages.

    issues I have:

    #1- Date red ribbons- this is an option in the customize theme section under ‘stuff’. (Red Ribbon Data) Cool look for the blog posts. Looks weird and out of place for pages and front page (nest to page titles). Is there any way to limit them to ONLY the blog posts? Looks great when activated for blog posts. Would hate to disable it for blog posts when I just want to disable it for everything else.

    #2- I wish the blog page had a title just like the other pages. It would be more consistent. but when I set that page as the “Posts Page”. it loses it’s title. Any way to have my cake and eat it too? I want the page title and have it be the Posts page.

    Any help will be very much appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter WilliamVaughan

    (@williamvaughan)

    Forgot to post link to site… it’s a work in progress of course but this might help explain what I’m after;

    andreaspeaksout.com/

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    Hi William!
    Thank you for using “Anarcho Notepad”! I’m glad that you liked my work!

    Yes indeed “Anarcho Notepad” is a free theme, but I accept donations as appreciation, because I spent 7 months on her writing.

    #1
    In the “Anarcho Notepad” there are page template without date-ribbon.
    To use:
    In the page editor In the field of “Page Attributes” > “Template” instead of “Default Template” choose “Page without date”.

    #2
    For displaying posts used files:
    index.php
    home.php
    category.php
    archive.php
    search.php

    but not the page.php

    I think you will need to create a category “Blog” (instead page) and add it to the menu “anarcho-menu”.

    Please let me know if this helped.

    Thread Starter WilliamVaughan

    (@williamvaughan)

    Thanks for the quick reply. #1 is resolved but I still have an issue with #2.

    I did as you suggested and made the Blog a category instead of a page.

    I added the category named Blog to the menu and removed the Blog page. it looks identical to what I had when it was a page.

    I’m hoping to have the title “Blog” at the top of the page as seen on every other page in the “pages menu”

    just to be consistent.

    If you look at this site: https://andreaspeaksout.com/

    you will see a title on all apges:

    >Welcome to Andrea Speaks Out
    >About
    >Invisible Target
    >Contact

    only one missing is Blog.

    So far I have tried a Page and the Category you suggested with no luck getting a title… Any suggestions?

    Also… Where can I make donation?… Would love to support your efforts.

    Thanks again for replying to my questions

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    You are welcome!

    I got it, you need the title of the page, not the posts on the page.

    To do this, you need to create a new template file with the title of the page.
    Try this. Create a file page_blog.php and paste this:

    <?php
    /**
     * The template for displaying page with title.
     *
     * Template Name: Page with Title
     *
     * @package	Anarcho Notepad
     * @since	2.5.2
     * @author	Arthur (Berserkr) Gareginyan <[email protected]>
     * @copyright 	Copyright (c) 2013-2014, Arthur Gareginyan
     * @link      	https://mycyberuniverse.com/anarcho-notepad.html
     * @license   	https://www.gnu.org/licenses/gpl-3.0.html
     */
    ?>
    
    <?php get_header(); ?>
    
    <section id="content" role="main">
      <div class="col01">
      <?php anarcho_breadcrumbs(); ?>
      <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
    
        <h1><?php the_title(); ?></h1><br/>
    
        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
          <?php anarcho_ribbons(); ?>
    
          <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
          <div class="post-inner">
    
    	        <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
    
    		<?php the_content( __( 'Continue reading', 'anarcho-notepad' ) ); ?>
          </div>
    
          <div class="meta"><?php if ((the_category() != '')) { _e('Category: ', 'anarcho-notepad'); the_category(', '); } ?></div>
        </article>
        <?php comments_template(); ?>
        <?php endwhile; ?>
    
        <?php else : ?>
    
    	<div class="no-results">
    		<h1><?php _e('Not Found', 'anarcho-notepad'); ?></h1>
    		<p><?php _e('Sorry, but you are looking for something that isn\'t here.', 'anarcho-notepad'); ?></p>
    	</div>
    
        <?php endif; ?>
    
      </div>
    
       <?php get_sidebar(); ?>
    </section><br clear="all" />
    
    <?php get_footer(); ?>

    But it is desirable to do so in the child theme.

    To use:
    In the page editor In the field of “Page Attributes” > “Template” instead of “Default Template” choose “Page with Title”.

    You can make a donation from the Admin Panel of your site:
    “Admin Panel” > “Appearance” > “Theme info” > button “Donate”
    or from my website https://mycyberuniverse.com/anarcho-notepad.html

    Have you gone through Settings > Reading and set your home page as static and set a different blog page?

    Thread Starter WilliamVaughan

    (@williamvaughan)

    Thanks for the code. I added the page and selected Page with Title for my Blog Page and still have no title show up as seen here:

    https://andreaspeaksout.com/blog-3/

    I feel one step closer as I can select the page option of Page with Title. I’m just not seeing different results

    Sent a donation your way…. your help is very much appreciated!

    Thread Starter WilliamVaughan

    (@williamvaughan)

    @ Batharoy
    yes. This is how I set it up . But with this theme there is no title for the page that you dedicate to the blog posts.

    I’m hoping ot get this custom page working so I can get the title to display

    Thread Starter WilliamVaughan

    (@williamvaughan)

    @ Arthur Gareginyan

    Just to make sure you have full picture. I’m using the Customize option and setting the ‘Posts Page’ to my ‘Blog’ page.

    So that all the blog posts show up on the Blog page.

    let me know if you need more info

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    Ok.
    In file home.php after the line:

    <div class="col01">

    add this:

    <h1>Blog</h1><br/>

    Thread Starter WilliamVaughan

    (@williamvaughan)

    Perfect:
    https://andreaspeaksout.com/blog-3/

    All issues resolved… very much appreciated.

    Love the site and I’m sure my friend Andrea will as well.

    Enjoy your weekend and keep up the great work!

    Theme Author arthur-gareginyan

    (@arthur-gareginyan)

    I corrected the code above!

    Now you can remove the page_blog.php, It is no longer needed.

    Thank you for your donation! Have a good weekend!

    Hi Arthur,

    We’re using your theme and we love it!

    We also done:

    ‘In the page editor In the field of “Page Attributes” > “Template” instead of “Default Template” choose “Page without date.’

    But when we use the search function the date is back on..
    Is there a way to make the date invisible in the search results?

    Thnx!

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 3 month old, resolved, topic as it references an older version of WordPress.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Date Ribbons and Blog page Title’ is closed to new replies.