Tharmakulasingam Jeyjenthan
asked 5 years ago

Hi everyone,

I have used your DW Focus theme to develop our news site. I want to have sligt changes on some features. Eg: I want to change the headings of latest news to come above featured image of the News. Where I have to change the theme.

Any help is appreciated.
Thank you

1 Answers
DominicStaff
answered 5 years ago

Hi,
You can open the dw-focus-latest-news.php file in the folder path "wp-content > themes > dw-focus > inc > widgets".
Also, you can tell me detail about the position which you want to change/ modify and please send me a screenshot for further checking, I will check and help you resolve it.
Regards,

jeyanth90
replied 5 years ago

Hi, Here is the snapshot of current template. https://drive.google.com/file/d/0B6EBeBX0PM-uQTRzY2RDRWFLRWc/view?usp=sharing. I want to move the headline above for image and contents. I also want to change image smaller. Please let me know where I have to change. Your help is appreciated. Thank you.

jeyanth90
replied 5 years ago

Hi, Another problem. In the sliding news section, some images cover whole section while some not cover whole section. In those cases, bottom part of this section becomes black . Here is the snapshots. https://drive.google.com/file/d/0B6EBeBX0PM-uV3RYdnFDdEdjcFE/view?usp=sharing, https://drive.google.com/file/d/0B6EBeBX0PM-uWkZ3cW15RWYtaEE/view?usp=sharing , https://drive.google.com/file/d/0B6EBeBX0PM-uYk9pZzRFTzYyVTg/view?usp=sharing . But we used almost same size images. So how we can solve this problem. Your help is appreciated. Thank you.

dominic Staff
replied 5 years ago

Issue1: If you want to move the headline above for image, contents and change image size, you can open the dw-focus-latest-news.php file. Add the following code under line 43.

<h2 class="entry-title"><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_title(); ?></a></h2>

Then remove the line 58.

  • To change image size, you can add the following code to the style.css file:
.home .site-content .content-inner .entry-thumbnail img {
  width: 110px;
  height: auto;
}
.home .site-content .content-inner .has-thumbnail .post-inner {
  margin-left: 140px;
}

Issue2: If you want to display image in the DW Slider as our demo, you should use image size 770x400px. Please send me your site for further checking.

Regards,

Powered by DW Question & Answer Pro