You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#110291 Styling content in JCEMediabox Popups

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 10 February 2022 10:28 GMT

tapiochre
Hi Ryan

I am trying to apply css styles to content when its shown in a popup panel.

I have set rules in a custom.css file and I know (from dev console) that they are being loaded to the site, but no evidence of them being obeyed is showing.

Is there a method I could use to ensure rules for content in the popup can be correctly applied?

Thx

Chris

Ryan
Please post a link to an example popup.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

tapiochre
Hi there

https://thegigtvshow.com/directory/band-of-joy
Click on "Purchase Tracks" and choose any of the two demos. Thx

Ryan
When you open a local article in a MediaBox popup, Mediabox appends &tmpl=component to the end of the url, to instruct Joomla to use a special file in the template to display only the article content, and not the surrounding modules etc.

This file - component.php in your template folder - usually only loads the minimum files for displaying content, and therefore may not include other css files you have configured the template to load. You may need to edit this file to add other stylesheets that you want to load.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.