slaterbeckham
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?<?php //get global prefix global $sr_prefix; global $query; if ($query) { $query = $query; } else { $query = $wp_query; } if (have_posts()) : while (have_posts()) : the_post(); $style = get_option($sr_prefix.'_blogstyle'); if (!$style) { $style = 'layout-fixed'; } $format = get_post_format(); if( false === $format ) { $format = 'standard'; } ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content blog-content clearfix"> <?php if( $format == 'standard' || $format == 'gallery' || $format == 'image' || $format == 'video' || $format == 'audio' ) { if($format == 'gallery') { get_template_part( 'includes/post-type', $format.'-single' ); } else { get_template_part( 'includes/post-type', $format ); } } ?> <div class="blog-left"> <?php if ( !get_option($sr_prefix.'_blogpostsdisabledate') ) { ?> <div class="blog-date"><span class="day"><?php the_time('d') ?></span><span class="month"><?php the_time('M') ?></span></div> <?php } ?> <?php if ( !get_option($sr_prefix.'_blogpostsdisabletype') ) { ?> <div class="blog-format"><span class="format-<?php echo $format; ?>"></span></div> <?php } ?> </div> <div class="blog-right"> <div class="blog-text"> <?php if( $format == 'standard' || $format == 'gallery' || $format == 'image' || $format == 'video' || $format == 'audio' || $format == 'aside' ) { the_content(); } else { get_template_part( 'includes/post-type', $format ); }?> </div> <?php if ( !get_option($sr_prefix.'_blogpostsdisabletags') ) { ?> <div class="blog-tags clearfix"><?php the_tags( '', '', ''); ?></div> <?php } ?> <?php if ( !get_option($sr_prefix.'_blogpostsdisableshare') ) { ?> <div class="share blog-share clearfix"> <div class="sharetitle"><h5><?php _e('Share this post', 'sr_Custom_theme'); ?></h5></div> <?php sr_sharebutton(); ?> </div> <?php } ?> <?php if ( !get_option($sr_prefix.'_blogpostsdisableauthorinfo') && get_the_author_meta('description') ) { ?> <div class="blog-author clearfix"> <div class="author-image"> <a>"><?php echo get_avatar( get_the_author_meta('user_email'), '40', '' ); ?></a> </div> <div class="author-bio"> <h5><?php _e('About the Author', 'sr_Custom_theme'); ?></h5> <p><?php the_author_meta('description'); ?></p> </div> </div> <?php } ?> </div> </div> <!-- END .entry-content --> </div> <!-- END .post-ID --> <?php if (get_option($sr_prefix.'_commentsblog') == 'enabled' && comments_open() && !post_password_required() ) { ?> <div id="comment-section" class="clearfix"> <?php comments_template( '', true ); ?> </div> <?php } ?> <?php endwhile; endif; ?>
[Code fixed by moderator]
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?sorry for being so naive.I’ve looked it from different ways.Please ignore the previous posts.
So, here is what i want to do. I want to disable or hide the featured image in single blog post.Thank you
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?Or Is there any way to to disable featured image in single blog post?
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?You are right. But aside shows content image in blog page. So, I thought something may be in there useful for me to solve what I am trying to do
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?Sorry for me being a silly. So, you are saying that replace blog-thumb by what result?
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?This is my aside format code.
<div class=”blog-aside”>
<?php echo the_content(); ?>
</div>It takes image from content but not clickable or there is no readmore.
I’ve added the code from it but it is not changing
Forum: Fixing WordPress
In reply to: How to show content image in standard blog format?Thanks for helpming me out
ok, i’ve lookede thumb in my functions.php
this is i’ve gound
Theme Supports
/*———————————————————————————–*/
add_theme_support( ‘post-thumbnails’ );
add_theme_support( ‘automatic-feed-links’ );
add_editor_style();
add_theme_support( ‘custom-background’ );add_image_size( ‘iconbox-thumb’, 45, 45, true );
add_image_size( ‘gallery-thumb’, 220, 220, true );
add_image_size( ‘portfolio-thumb’, 460);
add_image_size( ‘portfolio-crop-thumb’, 460, 270, true );
add_image_size( ‘single-portfolio-image-small’, 600);
add_image_size( ‘single-portfolio-image-big’, 940);
add_image_size( ‘single-blog-image’, 640);So, what should I replace or add.
Forum: Themes and Templates
In reply to: How to change color of my page titles in header?It works like champ but only ‘home’ page title hasn’t changed. Why?
Forum: Fixing WordPress
In reply to: How to delete category title in Menu?I just want to delete “category:”
Forum: Fixing WordPress
In reply to: How to delete category title in Menu?Sorry about that.I will mark both of them as resolved after i get solution for this.
https://www.ifeelcosmo.com/tutorials/Forum: Fixing WordPress
In reply to: How to show categories in pages?It worked. But I have this title in here. How to get rid of it ?
Category: Fashion
I want to delete this.How do I delete it
Forum: Fixing WordPress
In reply to: How to show categories in pages?This is what i have
<?php get_header(); ?>
<div id=”content-area” class=”clearfix”>
<?php get_template_part(‘includes/entry’); ?>
</div> <!– #content-area –><?php get_sidebar(); ?>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: I want to remove comment countsForum: Fixing WordPress
In reply to: I want to remove comment countshttps://www.ifeelcosmo.com/fashion
Also see individual post
https://ifeelcosmo.com/the-look-for-less-get-vanessa-hudgens-look/