I would like to add another button under the default one that is on the mainpage but i can’t find the right page to edit. can someone point me in the right direction…
Do you mean the big call to action button? That gets output in the index.php file by this code:
//mainpage headline and button
if($k_option['mainpage']['headline'] != '')
echo '<div id="feature_info">';
echo '<a href="'.get_permalink($k_option['mainpage']['buttonLink']).'" class="big_button heading ie6fix"><strong class="ie6fix">'.$k_option['mainpage']['buttonText'].'</strong></a>';
echo '<div class="text">'.$k_option['mainpage']['headline'].'</div>';
Yep, I saw that, but i guess what i’m looking for is where the parameters for the placement of it is. I’m wanting to add another just below it so that there are two of them. It can call for the same image and everything. I was thinking it may not be too hard to do. I’m not afraid to get into the code, i just wasn’t able to find where that was.
You would need to duplicate that option in the admin and then duplicate that function for the new button.
Alternatively, you can just add the html into the function by escaping the php just for where you add the new html. A rough example:
The topic ‘Mainpage button’ is closed to new replies.