Hi guys!
Please teach me how to get rid of quick links button but make them as regular links. See sample below:
Thanks,
Sam
Hi guys! Sam |
find the correct css file and change button style. |
find the correct css file and change button style. Its a button, I need to get rid of the button and use links instead |
It may be easier to just make the buttons look like links. If you examine the code, you will see that each button has a javascript onclick attached to them. You need to go into the code and make changes to make them links. What difference does it matter if they are javascript actions or actual links if they look like links? So the advice to restyle the buttons is a good one because it is quick and easy to do. Geeks, making the world a better place |
It may be easier to just make the buttons look like links. If you examine the code, you will see that each button has a javascript onclick attached to them. You need to go into the code and make changes to make them links. What difference does it matter if they are javascript actions or actual links if they look like links? So the advice to restyle the buttons is a good one because it is quick and easy to do. I cannot for the life of me figure out how to restyle the buttons. Tried playing around css but it doesnt work (e.g background-color:#ffffff to get rid of "buttons" interface) |
I've not played around with it, but my guess is that you need to have a look at the code in BxBaseMenu.php (/templates/base/scripts)
Good luck! Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information |
This is the code I see when I use Firebug on the Blogs button in Quick Links. <button class="bx-btn bx-btn-img bx-btn-small bx-btn-ifont" onclick="window.open ('http://mymarveloussite.com/blogs/home/','_self');">
<i class="sys-icon book"></i>
Blogs
</button>
We have a button tag and it has the following classes applied to it:
bx-btn bx-btn-img bx-btn-small bx-btn-ifont The <i> is holding the icon that will be displayed and Blogs is the text for the button.
Geeks, making the world a better place |
If you do want to change it to a link, then you need to remove the button tag and replace it with an anchor tag. <a href="http://mymarveloussite.com/blogs/home/" target="_self"><img src="my icon.png">Blogs</a> Or something close to that. And of course you would apply styling if need be. Geeks, making the world a better place |
Inspection shows that bx-btn contains the styling for the button: .bx-btn { Note: if you have CSS caching turned on, you have to go to tools->cache and clear at least the CSS cache in order to see the changes applied. You may also have to clear your browser cache in order for it to be forced to download the updated css. Note: bx-btn is in common.css. If you are using a custom template, be sure you are editing the css files for your custom template. If you don't see a common.css file in your custom template, then look in the base template. Geeks, making the world a better place |
If you want change only the quick links, edit file quick_link.html (templates\base) and change <button class="bx-btn bx-btn-img bx-btn-small bx-btn-ifont" __action__> with <a __action__> This will transform all buttons into links. Obviously you will need to create a CSS class to make the result more enjoyable. To add class simply write <a class="your-class-name" __action__> and change "your-class-name" with the name of the class you created. Maybe geek_girl can help you with this better than me (I am not good with css). |
The template file: <bx_if:icon> <bx_if:icon> As for anchor styling, you have active, visited, hover etc that you might want to play with. Geeks, making the world a better place |
Hello GeekGirl and GirlFriend, thanks for the help girls! Will try this out later. Thanks for your time checking this out. Really appreciated it. Sam |
bx-btn bx-btn-img bx-btn-small bx-btn-ifont
hello! I did this in
|
This is the code I see when I use Firebug on the Blogs button in Quick Links. <button class="bx-btn bx-btn-img bx-btn-small bx-btn-ifont" onclick="window.open ('http://mymarveloussite.com/blogs/home/','_self');">
<i class="sys-icon book"></i>
Blogs
</button>
We have a button tag and it has the following classes applied to it:
bx-btn bx-btn-img bx-btn-small bx-btn-ifont The <i> is holding the icon that will be displayed and Blogs is the text for the button.
Hi Geek girl! Sam |