Ed Sutherland
asked 8 years ago

I’d like readers to be able to click on a headline listed in the "Top Stories" section of the news slider widget and be taken to the actual article. Currently, clicking on a headline in the widget area only makes the associated image appear. How do I edit this widget to include the actual URL of a post?

2 Answers
answered 8 years ago

In this case, you can try this : open file : dw-focus\inc\widgets\dw-focus-news-slider.php, go to line 134 ,
Replace the code there with this :
<li data-slide-to="<?php echo esc_attr( $k ); ?>"< ?php echo $k == 0 ? ' class="active"' : ''; ?>> ">< ?php the_title(); ?>
Hope this helps !

replied 8 years ago

The suggested code displays the title and seeming a hypertext link, but there is no URL: perhaps the post’s permalink needs to be added?

answered 8 years ago

Sorry about previous answer, I confused in the code line. Please replace it with the following code:
See the screenshot: http://prntscr.com/9blqsg
Then add the following code to the stye.css file or Custom Codes box in DW Focus General Settings:

.dw_focus_widget_news_slider .carousel-title-indicators li a, .widget_news-slider .carousel-title-indicators li a {
    color: #555;
.dw_focus_widget_news_slider .carousel-title-indicators li.active a, .widget_news-slider .carousel-title-indicators li.active a {
    color: #fff;

Hope this helps !

Powered by DW Question & Answer Pro