How to update blog image and heading in front homepage of below blog section
-
Hi Team,
Kindly help me to resolve the issue. My front home page below blog section image is not updated and headings also not updated as it is connected with my blog of the site. My site is https://www.polconline.comI want the image and heading of home page blog section should change as I am updating my blogs.
Kindly help to resolve.
Regards,
Harry
-
Hi
Changes for Blog title and Description follow path
Theme Dashboard >> appearance >> option panel >> home testimonial >> Recent blog title
and kindly replace index-testimonials files with this link.
then save and cahnge
Thanks.
Hi Ali,
Thanks for your response. As you told me to update the recent blog by going to
Theme Dashboard >> appearance >> option panel >> home testimonial >> Recent blog title
Cannot it be automatically updated in the blog section of home page?Secondly May I know which file to replace and your link has two files one is code and second is raw code? Kindly confirm
What will happen when we replace? Please update. ThanksHi Team,
I have pasted this code of your link to my index-testimonials.php file but nothing has been changed.
My front page blog section has default girl picture and nothing has been changed.
I have not used Raw paste data anywhere.This is the code which I replaced in the index-testimonials.php
<?php
$current_options=get_option(‘busiprof_theme_options’);
$template_uri=get_template_directory_uri(). ‘/images/default’ ;
?>
<div class=”container”>
<div class=”row”>
<div class=”span6 testimonial_mn”>
<?php if($current_options[‘testimonials_title’]!=”) {?>
<h2><?php echo $current_options[‘testimonials_title’]; ?>
<?php } ?>
<span><?php if($current_options[‘testimonials_text’]!=”) { echo $current_options[‘testimonials_text’]; } ?></span></h2>
<div id=”testimonial_mn_cols” class=”media”>
<img alt=”webriti” src=”<?php if($current_options[‘testimonials_image_one’]!=”) { echo esc_url($current_options[‘testimonials_image_one’]);} ?>” class=”media-object img-circle pull-left recent_blog_thumb”>
<div class=”media-body”>
<p><?php if($current_options[‘testimonials_text_one’]!=”) { echo $current_options[‘testimonials_text_one’];} ?></p>
<?php if($current_options[‘testimonials_name_one’]!=”) { echo $current_options[‘testimonials_name_one’];} ?> <span><?php if($current_options[‘testimonials_designation_one’]!=”) { echo $current_options[‘testimonials_designation_one’];} ?></span>
</div>
</div><div id=”testimonial_mn_cols” class=”media”>
<img alt=”webriti” src=”<?php if($current_options[‘testimonials_image_two’]!=”) { echo esc_url($current_options[‘testimonials_image_two’]);} ?>” class=”media-object img-circle pull-left recent_blog_thumb”>
<div class=”media-body”>
<p><?php if($current_options[‘testimonials_text_two’]!=”) { echo $current_options[‘testimonials_text_two’];} ?></p>
<?php if($current_options[‘testimonials_name_two’]!=”) { echo $current_options[‘testimonials_name_two’];} ?> <span>(<?php if($current_options[‘testimonials_designation_two’]!=”) { echo $current_options[‘testimonials_designation_two’];} ?>)</span>
</div>
</div>
</div>
<div class=”span6 recent_blog”>
<h2><?php if($current_options[‘recent_blog_title’]!=”) { echo $current_options[‘recent_blog_title’];} ?>
<span><?php if($current_options[‘recent_blog_description’]!=”) { echo $current_options[‘recent_blog_description’];} ?></span></h2>
<div class=”row”>
<?php $args = array( ‘post_type’ => ‘post’,’posts_per_page’ => 4,’post__not_in’=>get_option(“sticky_posts”)) ;
query_posts( $args );
if(query_posts( $args ))
{
while(have_posts()):the_post();
{ ?>
<div class=”span3″>
<div class=”media” id=”recent_blog_cols”>
<?php $defalt_arg =array(‘class’ => “media-object img-circle pull-left recent_blog_thumb”);?>
<?php if(has_post_thumbnail()){?>
“><?php the_post_thumbnail(‘post_feature_recent_image_thumb’,$defalt_arg);?>
<?php } else { ?>
“><img class=”media-object img-circle pull-left recent_blog_thumb” src=”<?php echo $template_uri .’/testimonial.jpg’; ?>”>
<?php } ?>
<div class=”media-body”>
<p>“><?php the_title() ;?></p>
<span><?php echo get_the_date(‘M j,Y’);?></span></div>
</div>
</div>
<?php } endwhile ;
} else { ?>
<div class=”span3″>
<div class=”media-body”>
<p><?php _e(‘No POST TO DISPLAY…’,’busi_prof’);?></p>
</div>
</div>
<?php } ;?>
</div>
</div>
</div>
</div>Kindly reply and resolve
Hi Team,
Thanks a lot for your kind support. My concern has been resolved but now I am getting concern related to images.
Due to feature image I am getting two duplicate images in the blog. Please resolve and let me know the resolution. ThanksHi
Please Create new ticket for other issue.
Thanks.
Hi Team,
It is a part of old issue only where I am getting the images in the front home page but I am getting duplicate images in the blog due to feature image as you said.
Kindly check and help me to remove the duplicate images from the blog.Hi
To remove duplicate image from blog page add the below css code into
Custom css box ..blog_section_img { display:none; }
Thanks
AtulHi,
Kindly let me know which custom css box. Please reply.Hi
Go to Appearance << Option Panel << And find the custom css box and enter
The css code
Thanks
Thanks Its resolved. God bless you dear team.
- The topic ‘How to update blog image and heading in front homepage of below blog section’ is closed to new replies.