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

    Hi!

    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 http://www.essexinvest.com/ ). How do I go about doing that?

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

    Heather

    #104048

    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?

    #104049

    Hi,

    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.

    Regards,

    Ismael

    #104050

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

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

    Thanks tons,

    Heather

    #104051

    Hi!

    In header.php search for following line:

    get_search_form();

    and replace it with:

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

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

    Regards,

    Peter

    #104052

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

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

    Heather

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

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