• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Best Android Widgets – Biggest Collection of Android Widgets

    Best Android Widgets like battery widgets, email Widgets, photo widgets, Weather Widgets, Clock Widgets are categorically posted along with description.

  • WordPress Genesis Semi-static Home Page with Static Content From a Page

    If your website has thousands of articles like our website, you’ll end up finding a design which will support showing multiple lists of articles as static part followed by the regular design of blog’s homepage. It is a retro-style, thesitewizard.com is a good example of that style. This article is going to help the webmasters […]

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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