Forum Replies Created
-
AuthorPosts
-
hexenbiesteMember
Yep, I figured it out. Thanks.
<?php /* Template Name: Leo */ // Remove default Genesis loop remove_action( 'genesis_loop', 'genesis_do_loop' ); // Add new custom loop add_action( 'genesis_loop', 'astrochic_custom_loop' ); /** * Execute astrochic loop */ function astrochic_custom_loop() { //Create a loop for Leo while(have_posts()) : the_post(); echo '<div class="title">'. the_title() .'</div>'; echo '<div class="today">'. the_date() .'</div>'; echo '<div class="featuredsign"><img src="http://50.87.248.214/~astroch1/wp-content/themes/astrochic/images/signs/Leo.jpg"></div>'; echo '<div class="thecontent">' . the_content() . '</div>'; endwhile; } { ?> <!-- custom code here --> <?php } genesis();
hexenbiesteMemberThis reply has been marked as private.hexenbiesteMemberI figured it out y'all! For whoever searches something like this in the future:
I used jQuery...
$(".featured-content").click(function() {
window.location = $(this).find("a").attr("href");
return false;
});This script looks for a link inside a div with class a of "featured-content".
Redirects to that links value when anywhere in div is clicked.hexenbiesteMemberThis reply has been marked as private.August 26, 2015 at 5:07 pm in reply to: Featured Image Thumbnail before post title in category pages #163654hexenbiesteMemberfigured it out…just added this to the functions.php :
function roselle_swap_title_image() {
if (‘is_archive’) {
remove_action( ‘genesis_entry_content’, ‘genesis_do_post_image’, 8 );
add_action( ‘genesis_entry_header’, ‘genesis_do_post_image’, 8 );
}
}
add_action( ‘genesis_before_content’, ‘roselle_swap_title_image’ );hexenbiesteMemberfigured it out...just added this to the functions.php :
function roselle_swap_title_image() {
if ('is_archive') {
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 );
}
}
add_action( 'genesis_before_content', 'roselle_swap_title_image' );hexenbiesteMemberWoops, I meant I want the post excerpts in my category pages to have thumbnails before the post title, like they do in the featured posts widget.
Like this (see left sidebar):
http://getsyoumoresales.com/definitive-guides/optimize-website-for-seo/August 19, 2015 at 11:09 am in reply to: Put posts from within the same category underneath single post #162857hexenbiesteMemberAwesome, thanks for that!
-
AuthorPosts