ramiro
asked 7 years ago
Change all image category home

now

change


thanks
5 Answers
DominicStaff
answered 7 years ago

I think you are using the Ads widget to insert the Ads to your site. In this case, please send me username & password of your site for further checking.

DominicStaff
answered 7 years ago

To change the image size as you want, you can add the following code to the style.css file

@media (min-width: 1200px) {
.dw_focus_widget_news_list .post .entry-thumbnail img {
 max-width: 320px;
}
}
 .dw_focus_widget_news_list .post {
 padding-left: 0px;
}
 .content-box {
 padding-top: 230px;
}

Then open the dw-focus-news-list.php file in the inc/widgets folder then find the line 110 and replace the <article> tag with the following code:

<article <?php post_class(); ?>>
 <?php if ( has_post_thumbnail() ) : ?>
 <div class="entry-thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'dw-focus-home-img' ); ?></a></div>
 <?php endif; ?>
 <div class="content-box">
 <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
 <div class="entry-meta">
 <?php if ( $show_date ) : ?>
 <span class="entry-date"><i class="fa fa-clock-o"></i> <?php echo get_the_date( __('F j, Y', 'dw-focus') ); ?></span>
 <?php endif; ?>
 <?php if ( $show_author ) : ?>
 <span class="entry-author"><i class="fa fa-user"></i> <?php the_author(); ?></span>
 <?php endif; ?>
 <?php if ( $show_comment && ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
 <span class="comments-link"><?php _e( '<i class="fa fa-comment"></i> ', 'dw-focus' ); ?><?php comments_popup_link( __( '0', 'dw-focus' ), __( '1', 'dw-focus' ), __( '%', 'dw-focus' ) ); ?></span>
 <?php endif; ?>
 </div>

<?php if ( ‘content’ == $show_content ) :
$more = 0;
?>
<div class=”entry-content”><?php the_content( __( ‘Continue reading <span class=”meta-nav”>&rarr;</span>’, ‘dw-focus’ ) ); ?></div>
<?php elseif ( ‘excerpt’ == $show_content ) : ?>
<div class=”entry-summary”><?php the_excerpt(); ?></div>
<?php endif; ?>
</div>
</article>

And open the init.php file in the inc folder then find the line 34. Add the following code under line 34.

add_image_size( 'dw-focus-home-img', 402, 320, true );

 

DominicStaff
answered 7 years ago

At the moment, I can not access your site. If you want to change the image in the version 1.1.0. Please send me your FTP account, I will help you resolve it.

DominicStaff
answered 7 years ago

Please accept my apology for the delay in getting back to you. I’m checking and help you resolve this issue.

ramiro
replied 7 years ago

ok,thanks

DominicStaff
answered 7 years ago

I can not access your site. In this case, you can be done step by step following:
1/ Add the following code under the line 706 of the functions.php file:

add_image_size( 'dw-focus-home-img', 402, 320, true );

2/ Open the dw-focus-categories.php file in the inc/widgets folder then find the line 246.
Replace the following code:

<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'dw_focus' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail('thumbnail'); ?></a>

Wiith this code:

<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'dw_focus' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail('dw-focus-home-img'); ?></a>

3/ Add the following code to the style.css file:

.widget.news-category .hentry.has-thumbnail .entry-title, .widget.news-category .hentry.has-thumbnail .entry-meta, .widget.news-category .hentry.has-thumbnail .entry-content {
 margin-left: 0;
}
ramiro
replied 7 years ago

thanks dominic

Dominic Staff
replied 7 years ago

My pleasure, If you have any issue or questions, please let me know, I will help you resolve it as soon as possible.

ramiro
answered 7 years ago

Hi Dominic, I want to change the wide color responsive dw focus 1.1.0 since I modify it.
Ramiro
thanks

Dominic Staff
replied 7 years ago

Please send me a screenshot about the position that you want to change the color.

ramiro
replied 7 years ago

Sorry, I want the responsive head to be full width, on web it comes out perfect but I see on mobile not full width small fault

Dominic Staff
replied 7 years ago

Please let me know, if you still face their issue, you can add the following code to change the image size on the mobile:
.widget.news-category .hentry.has-thumbnail img, .widget.news-category .hentry.has-thumbnail img, .widget.news-category .hentry.has-thumbnail img {
width: 110px;
height: 110px;
}

ramiro
answered 7 years ago

hola dominic,Not complete width is dw focus 1.1.0 

Even black margin remains flat but not complete
thamnks ramiro
ramiro
replied 7 years ago

hi dominic . Not complete width menu is dw focus 1.1.0

Even black margin remains flat but not complete
thanks ramiro

Dominic Staff
replied 7 years ago

You can try the following code:
.site-header .container {
   position: relactive;
}
#main>.container {
  padding-top: 30px;
}

@media (min-width: 1000px) {
.desktop .wrap-navigation {
position: absolute;
left: 0;
bottom: -80px;
}
}
.navbar {
border-left: 1px solid #ddd;
}
#under-navigation {
border-left: 1px solid #ddd;
}
div#main {
margin-top: 80px;
}

#main>.container {
padding-top: 30px;
}

Powered by DW Question & Answer Pro