Titta
asked 10 years ago

hi staff
congratulations for the nice theme
I would like to help to change the category widget on the homepage.
I would like the item photo featured on the left side of the class was great and the title of the article under the photograph.
Suggestions?
thanks

2 Answers
DominicStaff
answered 10 years ago
Titta
replied 10 years ago

Thanks, but the question you indicated I had seen, but not about what I want. I would like the larger size of the photo of the first article of the category on the left. He is currently in thumbnail format.

DominicStaff
answered 10 years ago

Hi,
To resolve this issue, you can do as the following:
– Open the dw-focus-categories.php file in the folder path “wp-content\themes\dw-focus\inc\widgets”. 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>

With new 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('medium'); ?></a>

– Add the following code to the Header Code (Dashboard > customize > Custom code.)

<style>
.widget.news-category .entry-meta, .entry-title, .entry-content { clear: left; margin-left: 0 !important; }
</style>

Hope this helps !

Titta
replied 10 years ago

Nice!! Thank you very much. By

Powered by DW Question & Answer Pro