What file is the tag located in Genesis default theme?

In every good theme, the </body> tag is located in the footer.php file. However, unless you’re using a child theme, any modification will be lost on a theme update. That’s why it’s better to use the wp_footer filter hook like so: add_action( ‘wp_footer’, ‘wpse_76330_aweber_tracking_code’ ); function wpse_76330_aweber_tracking_code() { ?> %%%% insert tracking code here %%%% … Read more

Genesis Child Theme Modifying Comments display

You can use the genesis_post_info and genesis_post_meta filters in your child theme rather than modify the parent theme frameworks files which will be lost when you update Genesis. Remove comments link from post info add_filter( ‘genesis_post_info’, ‘remove_post_info_comments_link’ ); function remove_post_info_comments_link($post_info) { $post_info = ‘[post_date] by [post_author_posts_link] [post_edit]’; return $post_info; } Add comments link to post … Read more

Multiple loops in Genesis

I think both issues can be solved by altering what’s happening inside the loop. The code you’ve posted are the arguments that are used for the query. There is a while loop which then goes through the results of the query and displays them. Try to find while ($wp_query->have_posts()): $wp_query->the_post();. Between this and endwhile; the … Read more

Responsive menu on genesis theme [closed]

I answered earlier but the link I provided doesn’t exist anymore. So, I’ll post the code here in hopes that it is what you’re looking for. In your functions.php, add this snippet to create the markup: /* Mobile Menu —————————————————————————————-*/ add_action( ‘genesis_site_description’, ‘ls_mobile_menu_toggle’, 5 ); function ls_mobile_menu_toggle() { echo ‘<div class=”menu-toggle”>’; echo ‘<li></li><li></li><li></li>’; echo ‘</div>’; … Read more

Genesis loading of html5shiv for IE8

According to Microsoft’s docs, the syntax for revealing and hiding content using conditional comments are different, so since you’re trying to only use (reveal) the script for IE8 and below (vs. hiding it), the echo statement should change to: echo ‘<![if lt IE 9]><script src=”https://html5shiv.googlecode.com/svn/trunk/html5.js”></script><![endif]>’ . “\n”; Support for conditional comments ended with IE10, so … Read more

How to create a non-responsive WordPress Theme Using Genesis Framework?

You can remove all the CSS code under the Media Queries section of any child theme built on Genesis. This code is generally located at the end of the style.css file. However, WordPress also includes responsiveness built in so its not really possible to totally remove everything unless you go to a lot of trouble. … Read more

Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis

For anyone with the same problem, here’s the answer. I finally figured it out. // Display Profile Sidebar ACF add_action(‘genesis_sidebar’, ’employee_title’); function profile_photo() { if ( is_singular(‘profile’) && genesis_get_custom_field(’employee_title’) ) echo ‘<div id=”employee-title”> ‘. genesis_get_custom_field(’employee_title’) .'</div>’; } This is the the hook location in Genesis where the custom field data needs to output to: genesis_sidebar. … Read more

Genesis / custom template page / setting the page title and meta desc

Yoast Support kindly provided me with the following reference: https://yoast.com/wordpress/plugins/seo/api/ Using the following filters calling my own functions, I was able to change everything in the header based on dynamic content. add_filter(‘wpseo_title’, ‘setPageTitle’, 10); add_filter(‘wpseo_metadesc’, ‘setMetaDesc’, 10); add_filter(‘wpseo_canonical’, ‘setCanonical’, 10); add_filter(‘wpseo_opengraph_image’, ‘setOG_Image’, 10); add_filter(‘the_title’, ‘setTitle’, 10);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)