agapurcio
asked 6 years ago

would like to know how I can add the number of comments next to the news publication date, and link directly to the comments part. In the pictures I’ve added some red lines in the part where you should go.
Thank you very much for your help.

View post on imgur.com

View post on imgur.com

4 Answers
DominicStaff
answered 6 years ago

Unfortunately, DW Focus does not support this issue.

agapurcio
replied 6 years ago

And to change the text color to white and the links either?

Dominic Staff
replied 6 years ago

You only can use the following code to change the color:
.comment-count {color: #…; ….}
Hope this helps !

agapurcio
replied 6 years ago

Sorry for the ignorance, but: What part I add?

Dominic Staff
replied 6 years ago

you can add to the style.css file.

agapurcio
answered 6 years ago

Is there any solution for this?

DominicStaff
answered 6 years ago

To resolve this issue:
– You can open the dw-focus-slider.php file in the folder path “\wp-content\themes\dw-focus\inc\widgets”. Find the line 112, then add the following code under line 112:

<p class="comment-count">-<?php comments_number( 'no Comment', 'one Comment', '% Comment' ); ?>.</p>

– Open the dw-focus-recent-posts.php file. Find the line line 197, then add the following code

<p class="comment-count">-<?php comments_number( 'no Comment', 'one Comment', '% Comment' ); ?>.</p>

Hope this helps !

agapurcio
replied 6 years ago

Thank you very much, it works perfectly.

The only thing I would change is that the text becomes blank and clicking enlazase to the comments section of the news.

Thanks for your help and sorry for the inconvenience

agapurcio
answered 6 years ago

I have another problem besides the comments, only shows the day in the comments and not the time, I tried to change it in the settings, but does not appear anywhere.

Powered by DW Question & Answer Pro