• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » WordPress Genesis HTML Sitemap With Responsive Columns

By Abhishek Ghosh November 21, 2016 12:06 am Updated on June 23, 2020

WordPress Genesis HTML Sitemap With Responsive Columns

Advertisement

HTML Sitemap is an important page of a website. It is significantly improved version than default WordPress StudioPress Genesis supplied archive template. Here is a Free WordPress Genesis HTML Sitemap With Responsive Column PHP Template For the Genesis Users. Simply you need to drop it via FTP & select a template from WordPress Post editor.

 

Features of WordPress Genesis HTML Sitemap With Responsive Columns

 

Live demo of sitemap is here. We have listed only the latest 100 posts, not all posts ever published. We talked before about how to list all the posts on WordPress. It is not difficult but wastage of resources of the server. You can modify your’s own and add pagination. It is meaningless because we have categories, tags. Regarding features, it has responsive columns as you can see. That CSS is inline, no Javascript or external CSS is called. Rest of the design will be handled by the Genesis framework or child theme.

We have removed the odd kinds of stuff of default StudioPress Genesis archive pages towards the bottom like Author-named archive, added RSS Feed, added responsive CSS columns for monthly archives and pages, added horizontal lines etc.

Advertisement

---

On a full desktop browser, you’ll see three columns, on browsers lesser than 1139px, you’ll see two columns, on browsers lesser than 480px, you’ll see one column.

We talked about CSS Columns, it is CSS which is automatically breaking the list in to nice columns. Very old browsers may not support.

 

How To Use WordPress Genesis HTML Sitemap?

 

Easy. If your child theme’s name is Metro, and the path is wp-content/themes/metro. Then go to that location via FTP or SSH. We are supplying you a PHP file named page_archive.php. List the files and make sure that another custom file is not in place, if such present, rename that.

wordpress-genesis-html-sitemap-with-responsive-columns

We have a full GitHub repo for that WordPress Genesis HTML Sitemap. Download only the page_archive.php as RAW text and save as page_archive.php. Basic questions are answered on that repo. Then, from WordPress administration backend, create a Page named archive or sitemap, choose Sitemap as a template from WordPress Editor’s Page Attributes > Template > [Dropdown] > Sitemap. Save the page and publish it. That’s it. In Github repo, basics on how to edit are written.

You’ll notice that, in our sitemap some text added. That is added via editing the template after these lines with HTML p tag :

Vim
1
2
function genesis_page_archive_content() { ?>
<?php echo genesis_html5() ? '<article>' : '<div>'; ?>

 

Full PHP Template of WordPress Genesis HTML Sitemap

 

For practical reasons, we are hosting the code on this page, but you should use GitHub’s that repo :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author  The Customize Windows
* @license GPL-2.0+
* @link    https://thecustomizewindows.com/
*/
//* Template Name: Sitemap
 
//* Remove standard post content output
remove_action( 'genesis_post_content', 'genesis_do_post_content' );
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
 
add_action( 'genesis_entry_content', 'genesis_page_archive_content' );
add_action( 'genesis_post_content', 'genesis_page_archive_content' );
/**
* This function outputs sitemap-esque columns displaying all pages,
* categories, authors, monthly archives, and recent posts.
*
* @since 1.6
*/
function genesis_page_archive_content() { ?>
 
<?php echo genesis_html5() ? '<article>' : '<div>'; ?>
<style>
.thecustomizewindows-custom{
margin-bottom: 1em !important;
margin-top: 1em !important;
column-count: 3;
column-gap: 10 px;
column-rule-color: #0274BE;
column-rule-style: outset;
column-rule-width: 1px;
box-sizing: border-box;
display: block;
line-height: 1.5;
}
@media only screen and (max-width: 1139px) {
.thecustomizewindows-custom {
column-count: 2;}
}
@media only screen and (max-width: 480px) {
.thecustomizewindows-custom {
column-count: 1;}
}
</style>
           <h2><?php _e( 'Monthly:', 'genesis' ); ?></h2>
<hr>
<div class="thecustomizewindows-custom">
           <ul>
               <?php wp_get_archives( 'type=monthly' ); ?>
           </ul>
</div>
<hr>
           <h4><?php _e( 'Recent 100 Posts:', 'genesis' ); ?></h4>
           <ul>
               <?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
           </ul>
<hr>
<div class="thecustomizewindows-custom">
               <h4><?php _e( 'Pages:', 'genesis' ); ?></h4>
           <ul>
               <?php wp_list_pages( 'title_li=' ); ?>
           </ul>
</div>
<hr>
           <h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
           <ul>
               <?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
           </ul>
 
           <h4><?php _e( 'Authors:', 'genesis' ); ?></h4>
           <ul>
               <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?>
           </ul>
 
<h4><?php _e("Site Feeds", "genesis"); ?></h4>
<ul>
<li><a href="<?php bloginfo('rss2_url'); ?>"><?php _e("Main RSS Feed", "genesis"); ?></a></li>
</ul>
 
<p style="text-align: right;"><span style="color: #999;">dEVELOPED by <a title="The Customize Windows" href="https://thecustomizewindows.com/" target="_blank">The Customize Windows</a></span></p>
 
<?php
echo genesis_html5() ? '</article>' : '</div>';
}
 
genesis();

This Article Has Been Shared 347 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to WordPress Genesis HTML Sitemap With Responsive Columns

  • WordPress Plugins to create a glossary in your blog

    Imagine your blog that includes a glossary specializing in theme of your blog: cooking, mechanics, computer science, horsemanship, medicine, Web marketing, etc..advantage of creating a glossary for your blog is that you create additional text content for search engines. The glossary is a source that will possibly attract more visitors.

  • Android app for your WordPress blog in easy steps

    Android app can be created for your own Wordpress blog in easy steps without the knowledge of a single piece of coding.

  • Loading WordPress Backend Faster : Easy Guide

    Loading WordPress Backend Faster is a dream to many. Somehow if they can manage the Frontend to load faster, the backend remains badly slow. Here is a guide!

  • Scalable MySQL Database for WordPress with Rackspace Cloud

    Scalable MySQL Database for WordPress is very easy to create as Rackspace allows Cloud Database,so does Amazon. Here is a guide for high performance WordPress.

  • WordPress Dashboard Widget Custom Feed

    We Can Add Any PHP Feed Aggregator Snippet in Our Example WordPress Dashboard Widget’s Source To Get WordPress Dashboard Widget Custom Feed.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023
  • Web Design Cookbook: Accessibility March 21, 2023
  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023

About This Article

Cite this article as: Abhishek Ghosh, "WordPress Genesis HTML Sitemap With Responsive Columns," in The Customize Windows, November 21, 2016, March 22, 2023, https://thecustomizewindows.com/2016/11/wordpress-genesis-html-sitemap-responsive-columns/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT