For a clients website I need to remove post info for multiple categories. So, here is the code I use to remove genesis_post_info from multiple categories.
Add above code to the bottom of your child theme’s functions.php file.
For a clients website I need to remove post info for multiple categories. So, here is the code I use to remove genesis_post_info from multiple categories.
Add above code to the bottom of your child theme’s functions.php file.
For a client’s blog website I need to add a para automatically after each single post, found a snippet from Jeff Starr using a WordPress hook. Here’s how to do.
add_filter('the_content', 'add_post_content')
function add_post_content($content) {
if(!is_single()) {
$content .= '<p>YOUR CONTENT GOES HERE'</p>';
}
return $content;
}
If you enjoyed and find helpful this article, please consider sharing it.
Sometimes need to change the Genesis‘s default content on demand of client to show clients requirement (i.e. footer logo, remove back to top, credential change, add footer link).
NOTE: When writing your own code/filters, use a child theme. Do not write to the default functions.php file in Genesis. It will overwrite on updates.
See below for codes I wrote to change Genesis Footer Content on child themes.
add_filter('genesis_footer_creds_text', 'auc_footer_creds_text');
function auc_footer_creds_text($creds) {
$creds = '©' . date('Y') . ' '
. get_bloginfo('name') .
'. All rights reserved. Powered by <a href="http://wordpress.org/">WordPress</a>.';
echo $creds;
}
This will remove the footer credits text and ‘back to top’ link.
add_filter('genesis_footer_output', 'footer_output_filter', 10, 1);
function footer_output_filter($footer_content) {
$footer_content = '';
return $footer_content;
}
This will remove the default footer with credit text and Back to Top and add a WordPress custom navigation menu.
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'auc_do_footer' );
function auc_do_footer() {
$creds = '© Copyright '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved.';
$footernav = wp_nav_menu( array('menu' => 'footer' ));
echo $footernav;
?>
This is a simple task if you use the built in is_page() conditional tag in WordPress and use one of the Genesis structural action hooks. We’ll be using the genesis_before_sidebar_widget_area action hook in this example.
<?php
// Add additional sidebar content to the book page
add_action('genesis_before_sidebar_widget_area', 'child_genesis_sidebar');
function child_genesis_sidebar() {
if ( is_page('__SPECIFIC-PAGE-ID-OR-TITLE__')) { ?>
<your-content-code>
<?php
}
}
?>
AREUCONNECTED is a Dhaka-based website design and digital marketing agency, with clients all around the world.
Our primary goal is to support small and medium-sized enterprises in their expansion by utilizing cutting-edge design concepts and technologies.
Our aim is to offer our clients the best solutions possible in the areas of web design & development, digital marketing, e-commerce, SEO, and branding.
This website only uses cookies that are necessary for the site to function and they do not contain any personal data. You can find out more about the cookies used in our privacy policy
OKLearn moreWe may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.
Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.
These cookies are strictly necessary to provide you with services available through our website and to use some of its features.
Because these cookies are strictly necessary to deliver the website, you cannot refuse them without impacting how our site functions. You can block or delete them by changing your browser settings and force blocking all cookies on this website.
These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.
If you do not want that we track your visist to our site you can disable tracking in your browser here:
We also use different external services like Google Webfonts, Google Maps and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.
Google Webfont Settings:
Google Map Settings:
Vimeo and Youtube video embeds:
You can read about our cookies and privacy settings in detail on our Privacy Policy Page.
Privacy Policy