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

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to add before entry widget in Genesis Child Theme

February 22, 2014 by Sharad Chhetri Leave a Comment

In this tutorial we will learn, how to add before entry widget in Genesis Child Theme.
It is mine new journey with Genesis Framework.Working and exploring,to make theme on it.In my some posts,I already stated I recently got my premium theme.Before this I played on,already available free Genesis Theme. In my some other sites,I decently used the free Genesis Sample Theme as well.

The themes which I explored,most of it does not have before entry widget.I always prefer the themes,which has widget on header,sidebar,above and below posts and footer area. The reason is,it is easy to put Advertisement and some useful widget at these area.

I have taken the below given code from my own site’s Magazine Pro theme.
In below given code,you can replace word magazine with your theme name

Add the below given code in functions.php file of Genesis Child Theme

Add the below given lines at last end of the functions.php file of the child theme.

//* Register before entry widge
genesis_register_sidebar( array(
	'id'          => 'before-entry',
	'name'        => __( 'Before Entry', 'magazine' ),
	'description' => __( 'before entry section.', 'magazine' ),
) );
 
//* Adding hook in single post
add_action( 'genesis_entry_content', 'sharad_before_entry_widget',9 );
function sharad_before_entry_widget() {
 
	if ( ! is_singular('post' ) )
		return;
 
	genesis_widget_area( 'before-entry', array(
		'before' => '
', 'after' => '
', ) ); }

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to add favicon in WordPress theme and child theme
  2. How to customize footer credit links in Genesis Child Theme
  3. How to add excerpt on wordpress thematic child theme
  4. Create fixed top navigation menu bar on wordpress theme
  5. grep command to show lines after and before the keyword
  6. How to test rpm package before installation
  7. How To Add duckduckgo Search engine in WordPress Blog or website
  8. Add swap file in linux without reboot after OS installation
  9. How to add/install Ubuntu fonts in CentOS/Red Hat Linux
  10. SimpleCodeSyntax : My Another WordPress Plugin

Filed Under: Linux, Wordpress Tagged With: Genesis, wordpress

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Commands

How to extract RPM package on Linux system

Jpeg Image Optimization / Compress on Linux

How to read logs which are writing continuously : LINUX/UNIX

How to find installation date and time of rpm package

There are unfinished transactions remaining. You might consider running yum-complete-transaction

smbpasswd command not found on CentOS 7 and RHEL 7

awk command to search keyword or strings in file

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

Terminal Recording with script and scriptreplay command

Install libjpegtran by using yum command in CentOS 6.x

How To Get SSH Public Key Fingerprint Information

4 Different commands to find system uptime in linux

Convert video file into gif file through command line in linux

How to encode and decode the strings with base64

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands With Examples For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy