• 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 Homepage : Semi-Static, Customizable

By Abhishek Ghosh August 12, 2017 12:39 am Updated on June 23, 2020

WordPress Genesis Homepage : Semi-Static, Customizable

Advertisement

Most of us need widgets below navigation on the homepage, followed by regular blog posts. That thing is semi-static. We need semi-static homepage which is customizable, SEO Friendly has manual control with automatic functions. Here is PHP snippets, HTML, CSS to create WordPress Genesis Homepage. What I saw for HTML old version to HTML5 upgrade, if we use manual codes more than PHP snippets, it is better because of various reasons including adding microformats. Genesis has latest posts, featured posts widgets and that is why peoples search for multiple widgets. But I am offering you one PHP widget with really multiple widget functions. With plugins, snippets you can fetch hyperlinks of recent posts from your category of choice plus add own hyperlinks. Additionally, you’ll load homepage CSS only on homepage. It is a demo with markings :

WordPress Genesis Homepage Semi-Static Customizable

Although it is written for StudioPress Genesis, it is usable with other themes.

 

WordPress Genesis Homepage : Semi-Static, Customizable

 

You need the Genesis Simple Hooks Plugin. There is a plugin to fetch recent posts from the desired category with shortcode:

Advertisement

---

Vim
1
https://wordpress.org/plugins/recent-posts-widget-extended/

There is Samuel Otto’s PHP text widget plugin :

Vim
1
https://wordpress.org/plugins/php-code-widget/

In Genesis you’ll need to target genesis_before_content_sidebar_wrap to get widget below navigation on homepage, followed by regular blog posts. This code on child theme’s functions.php :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Adds home widget area
genesis_register_sidebar( array(
'id' => 'thecustomizewindows-widget',
'name' => __( 'Home Widget', 'thecustomizewindows' ),
'description' =>  __( 'Adds a Widget on Home Page Below Navigation', 'thecustomizewindows' ),
) );
add_action( 'genesis_before_content_sidebar_wrap', 'thecustomizewindows_home_widget', 10 );
function thecustomizewindows_home_widget() {
if ( is_home() && is_active_sidebar( 'thecustomizewindows-widget' ) ) {
    echo '<div class="thecustomizewindows-widget">';
    dynamic_sidebar( 'thecustomizewindows-widget' );
    echo '</div><!-- end .thecustomizewindows-widget -->';
 
  }
 
}

That line add_action( 'genesis_before_content_sidebar_wrap' is important.
If somehow, regular blog posts do not show, you can add this snippet on child theme’s functions.php :

Vim
1
2
3
4
5
6
7
8
add_action( 'genesis_entry_content', 'tcw_show_posts' );
function tcw_show_posts() {
    if ( is_front_page() ) {
        printf( '<div %s>', genesis_attr( 'home-below-content' ) );
            genesis_widget_area( 'home-below-content' );
        echo '</div>';
    }
}

Go to Widgets and test with test text. You can change the phrase thecustomizewindows with your site name. Now, here is my demo of 3 columns responsive design (total four areas) here :

Vim
1
https://codepen.io/AbhishekGhosh/pen/Nvvbez/

See the Pen 3 column homepage by Abhishek Ghosh (@AbhishekGhosh) on CodePen.

That CSS is obviously sized for my need but you can adjust for your size. Obviously, you’ll inject the CSS via Genesis Simple Hooks Plugin’s genesis_before_content_sidebar_wrap field with style CSS wrap within this PHP conditional :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
<?php if(is_front_page()) : ?>
 
<style>
#pagewrap-tcw {
...
...
...
    }
}
</style>
 
<?php endif; ?>

That HTML will go via a Text-PHP widget to that newly added location to add widgets on the homepage.

Tagged With genesis home

This Article Has Been Shared 675 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 Homepage : Semi-Static, Customizable

  • WP Super Cache With Rackspace Cloud Files CDN (Open Cloud)

    WP Super Cache With Rackspace Cloud Files CDN guide is an update due to change of technology by using Open Cloud.The Streaming Media need to be used separately.

  • AdSense Asynchronous Ads with Responsive Design

    AdSense Asynchronous Ads with Responsive design is a quite difficult to manage or implement. Here are some ideas which might help you for HTML5 website.

  • Choosing WordPress and HTML Template for a Website

    Choosing WordPress and HTML Template for a Website is not really that easy that it might sound. This quite difficult as both has limitations of their own.

  • Icon-Font : Using with WordPress

    Icon-Font is Icons but is in Font format – that simply means, what you used commonly as image and increased your page loading time can be reduced and made cool.

  • How To Hide AdSense Units On Selected WordPress Post

    Here Is How To Hide AdSense Units On Selected WordPress Post. There Is CSS, PHP, Javascript Or Simply Ready To Use WordPress Plugin To Do It.

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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "WordPress Genesis Homepage : Semi-Static, Customizable," in The Customize Windows, August 12, 2017, January 30, 2023, https://thecustomizewindows.com/2017/08/wordpress-genesis-homepage-semi-static-customizable/.

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