• 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 391 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Domain-Driven Design (DDD)? January 23, 2021
  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021

 

About This Article

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

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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