• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

How to Modify Genesis Search Results Page

How to Customize Genesis Site Map Page

September 24, 2013 by Pat Fortino

The following examples illustrate some common changes:

Remove the Authors List

To remove the authors list, find the following code and delete it:

<h4><?php _e( ‘Authors:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_list_authors( ‘exclude_admin=0&optioncount=1’ ); ?>
</ul>

Remove the Monthly List

To remove the monthly list, find the following code and delete it:

<h4><?php _e( ‘Monthly:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>

Change the Number of Recent Posts

To change the number of recent posts, find the following code and change limit=100; for example, change 100 to 50 to show only 50 recent posts in the site map:

<?php wp_get_archives( ‘type=postbypost&limit=100’ ); ?>

Change the List Title

You can change any of the list titles.

For example, to change the Monthly list title to Posts by Month, find the following code:

<h4><?php _e( ‘Monthly:’, ‘genesis’ ); ?></h4>

and change it to:

<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>

Add Custom HTML Content

You can add custom HTML content anywhere in the page.

For example, if you want to add custom text AFTER the Posts by Month list title, find the following code:

<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>

and change it to:

<h4><?php _e( ‘Posts by Month:’, ‘genesis’ ); ?></h4>
<p>The following is a list of my monthly posts:</p>
<ul>
<?php wp_get_archives( ‘type=monthly’ ); ?>
</ul>

Testing and Viewing the Sitemap

Finally, to view or link to the sitemap page, enter the permalink you created for the sitemap; for example, http://mysite.com/sitemap. Or, you can link the sitemap to your menu. Click here to learn how to link pages to a WordPress menu.

 

Pages: Page 1 Page 2

Comments are closed. If you have information to share, contact me here.

Previous Post: « How to Build a Portfolio for Genesis 2.0
Next Post: bbPress v Simple:Press »

Reader Interactions

Comments

  1. Stephen says

    October 6, 2013 at 11:06 am

    This article was just what I needed. Excellent instructions. My site is all pages, so not only did you help me make the sitemap, but I was also able to remove the categories, etc.

    Suggestion: The only other thing this article could use is a snippet for excluding pages like “thanks for contacting us” pages, etc. Now I have to go find that code somewhere else.

    If I find it, I hope their instructions are as helpful as yours.

    • Pat Fortino says

      October 7, 2013 at 7:11 am

      If you want to exclude pages, see this: http://codex.wordpress.org/Function_Reference/wp_list_pages

      For example, where page id equals 10.

Related

Primary Sidebar

Blog Categories

Call Today

Get a Free Quote

303-907-6133

Subscribe to News

News about WordPress, WooCommerce, & Technology

What’s New

  • WPForms Not Sending Notifications
  • Add Terms and Conditions WooCommerce
  • Fix WordPress AMP Validation Errors
  • Use the Classic Editor with Gutenberg Block Editor
  • Add a Message at Top or Bottom of WooCommerce Checkout Page
  • How to Link to a PDF in WordPress

Find Us On…

  • Facebook
  • LinkedIn
  • RSS

Call 303-907-6133 Email

© 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top