Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #19528


    I’d like to add a link on the top of the Choices latest news widget to take you to the news blog page (similar to the one on this website ). How do I go about doing that?

    Thanks tons for all your help. You’re lifesavers!



    Hello again…

    Thanks for all your help and sorry to be a bother…

    I have one other issue. I removed the search bar from the header using directions I found in these forums (thanks for that) and would now like to put a line of text where it used to be (ie. next to the social icons). I must be messing up the code because when I try to do this in the header.php file the site goes blank. Could you please tell me how to do this?



    To add a link to the Latest News Widget, you can edit framework > php > class-framework-widgets.php then find this code

    $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
    $count = empty($instance['count']) ? '' : $instance['count'];
    $cat = empty($instance['cat']) ? '' : $instance['cat'];
    $excerpt = empty($instance['excerpt']) ? '' : $instance['excerpt'];
    $image_size = isset($avia_config['widget_image_size']) ? $avia_config['widget_image_size'] : 'widget';

    if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };

    Place this code below.

    echo "<a class='alignright' style='margin-top: -25px;' href='LINK TO YOUR BLOG'>View All</a>";

    You need to place your blog url on the anchor tag.




    Thanks that worked great! You’re the best :).

    Now if you could just help me with part two of my question?

    Thanks tons,




    In header.php search for following line:


    and replace it with:

    echo '<div class="infotextcontainer">My text..</div>';

    Instead of “My text..” insert your custom text.




    Thanks for your patience…. sometimes I overlook the easy solutions.

    Thanks also for all your help. You guys are the best.


Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Choices News Widget’ is closed to new replies.