Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1437

    Hello ,

    what is the right way for changing Headline Button Link from Page to Category ?

    I’ve just edit mainpage.php

    array( “name” => “Headline Button Link”,

    “desc” => “Where should the button link to:”,

    “id” => “buttonLink”,

    “type” => “dropdown”,

    “subtype” => “PAGE”), —-> to “subtype” => “CAT”),

    and now I can choose the category name in Mainpage option , but link still doesnt work .

    thanks !

    #35215

    Replace following code in index.php:

    if($k_option['mainpage']['buttonText'])
    {
    echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="big_button heading ie6fix">';
    echo '<strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong><span class="buttonBg dynamicBg"></span></a>';
    }

    with:

    if($k_option['mainpage']['buttonText'])
    {
    echo '<a href="'.get_category_link($category_id).'" class="big_button heading ie6fix">';
    echo '<strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong><span class="buttonBg dynamicBg"></span></a>';
    }

    Replace $category_id with the category id you want to link to.

    #35216

    Great !!!

    Super !

    #35217

    Glad that I could help you.

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

The topic ‘Headline Button link’ is closed to new replies.