Jump to content
Sign in to follow this  
rosiecatalano

Hook for music player widget for main nav

Recommended Posts

rosiecatalano    0
rosiecatalano

I'm using Platform Pro and would like to place a music player widget from Bandcamp in the area where the search function would sit on the right-hand side of the main nav bar. Ideally I'd like to enter some code in to functions.php and style.css using the Pagelines Customize plugin. I'm very new to hooks and so far every time I've attempted them I've ended up with pages of error messages. This is the bandcamp widget code: Thank you in advance to anyone who can help me with this.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi, First things first, the PageLines Customisation plug-in is only for PageLines Framework and not Platform Pro. If you wish to add custom code like hooks etc... you will need to Platform Pro Base child theme. Regarding the hooks question, I have provided you with a link to our legacy documentation, which has information as well as a video which should help you. http://www.pagelines.com/docs/base-child-theme If you need further assistance, don't hesitate to ask.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
rosiecatalano    0
rosiecatalano
Hi Danny, I attempted to make a child theme prior to activating PageLines Customize and didn't have much success but I'll have another go and get back to you. Cheers.

Share this post


Link to post
Share on other sites
rosiecatalano    0
rosiecatalano
Sorry Danny, you're right. It's PageLines Framework - Professional Edition. In this instance, is there a particular hook code I can enter in to PageLines Customize to embed this bandcamp widget? I've looked at the documentation a number of times and whenever I've entered a version of the hook code that I think should work I end up with pages of errors and have to restore the site from a backed up version (which is why I've turned to the forums). Thanks for your help, and apologies again for the confusion.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi Rosie, Can you give this a try please. It wont be in the correct the position, therefore I recommend you use the free plug-in ActionMap from the PageLines store. [code]add_action('pagelines_inside_bottom_nav', 'mplayer'); function mplayer(){?>

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
rosiecatalano    0
rosiecatalano
Thanks Danny, you're brilliant - that works perfectly. It sits below the navigation menu at the moment but I'll check out the action map and have a play until it's where I want it. Cheers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×