Adding Superfish to a template

Permalink Browser Info Environment
Hi I'm trying to do two things, remove most of the styles form superfish, i just want a very basic dropdown menu and secondly add it to a template like you can with the autonav block.

But doing this creates all kinds of visual issues, anyone know if i'm adding the correct code, also is there a basic version, i don't want the block to be able to select any styles I want all styles controlled by the style sheet with no drop shadow etc...

<?php  
 $bt_main = BlockType::getByHandle('superfish');
 $bt_main->controller->orderBy = 'display_asc';
 $bt_main->controller->displayPages = 'top';
 $bt_main->controller->displayPagesCID = '1';
 $bt_main->controller->displayPagesIncludeSelf = '0';
 $bt_main->controller->displaySubPages = 'none';
 $bt_main->controller->displaySubPageLevels = 'none';
 $bt_main->controller->displaySubPageLevelsNum = '0';
 $bt_main->controller->displayUnavailablePages = '0';
 $bt_main->render('view'); 
 ?>


Thanks

Type: Discussion
Status: New
BHWW
View Replies: View Best Answer
ryan replied on at Permalink Best Answer Reply
ryan
Check out this thread:
Basically when you pull the block into the template, it doesn't pull in the required css/js files.

http://www.concrete5.org/marketplace/addons/superfish/questions-and...

Once you get it working, you can start stripping things back to your specific needs.
BHWW replied on at Permalink Reply 1 Attachment
BHWW
Hi Ryan

Ok, i've gotten it working and got most of teh styles, but I can't for the life of me find how to remove the two paddings/margins that space out the li's, please see screen grab.

I've also changed the arrow, to be red and white instead of translucent, however I can't get the white arrow to stay it appears to be linked to the time out, any suggestions? thanks.

Regards

Ben
ryan replied on at Permalink Reply
ryan
You can usually find out what css styles are affecting elements pretty easily using firebug's document inspector for firefox:
http://getfirebug.com/

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.