anthony68
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sixteen] How to get a sidebar?Hi rosb, change the auto to hidden found in: wp-content/themes/sixteen/css/main.css
#primary-home { overflow: hidden; }
Hope this helps.
Forum: Themes and Templates
In reply to: [Virtue] Removing header images from postsHi yv3333, remove this code from ‘content-single.php’
(backup the file before you start editing it)
<?php } else if ($headcontent == 'image') { ?> <?php global $post; $height = get_post_meta( $post->ID, '_kad_posthead_height', true ); if ($height != '') $slideheight = $height; else $slideheight = 350; $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big) $image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image if(empty($image)) { $image = $img_url; } ?> <?php if($image) : ?> <div class="imghoverclass post-single-img"><a href="<?php echo $img_url ?>" rel="lightbox[pp_gal]" class="lightboxhover"><img src="<?php echo $image ?>" alt="<?php the_title(); ?>" /></a></div> <?php endif; ?>
Please note: this will not display the image in single post but will display image gallery, video etc. If you would like the others to not show let me know and I will post the code to remove.
Hope this helps
Forum: Themes and Templates
In reply to: [Virtue] Removing header images from postsHi yv3333, remove this code from ‘content-single.php’
(backup the file before you start editing it)
<?php } else if ($headcontent == ‘image’) { ?>
<?php global $post; $height = get_post_meta( $post->ID, ‘_kad_posthead_height’, true ); if ($height != ”) $slideheight = $height; else $slideheight = 350;
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,’full’ ); //get full URL to image (use “large” or “medium” if the images too big)
$image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image
if(empty($image)) { $image = $img_url; }
?>
<?php if($image) : ?>
<div class=”imghoverclass post-single-img”>” rel=”lightbox[pp_gal]” class=”lightboxhover”><img src=”<?php echo $image ?>” alt=”<?php the_title(); ?>” /></div>
<?php endif; ?>Please note: this will not display the image in single post but will display image gallery, video etc. If you would like the others to not show let me know and I will post the code to remove.
Hope this helps
Forum: Themes and Templates
In reply to: [Virtue] Removing header images from postsForum: Themes and Templates
In reply to: [GamePress] woocommerceThanks for the reply Alex, I did end up testing it on local server. Like you said, some element do need styling (not many), but overall It works!!
Great theme by the way, good job!!