This is strange: I use custom.css and it's enabled in template config. also, it loads on desktop browsers. However I can see no selector of my css on mobile devices, be it a tablet or a phone.
Only when I copy the css sermon into the custom css window of the template does it load on mobiles. I rather think this is not working as intended.
Any suggestions?
This is Joomla! 3.9.11 and PHP 7.2 (went back to PHP to 7.1, but it's still the same)
- chrishoefliger
- Commercial Templates
- Thursday, 05 September 2019
- Subscribe via email
Hello
Could you provide a URL to this issue along with the selector you are using.
Ciaran
Could you provide a URL to this issue along with the selector you are using.
Ciaran
- more than a month ago
- Commercial Templates
- # 1
Hi Ciaran,
thnx for your answer and sorry for the double post. I provide the URL. Note that I have included the whole custom code in the template css box. However, there are still things that don't look the same on mobiles. Also I am not amused with how the logo changes/disappears through browser widths.
Here's an example of my custom code (can't upload custom css/txt in upload files)
/* Overriting horizontal rule */
hr {
height: 3px;
max-width: 90%;
margin: 15px auto 20px;
background-color: #2f72ff;
border: 0 none;
}
/* no dimming of page on menu hover */
.hornav > ul > li::after {
display: none;
}
thnx for your answer and sorry for the double post. I provide the URL. Note that I have included the whole custom code in the template css box. However, there are still things that don't look the same on mobiles. Also I am not amused with how the logo changes/disappears through browser widths.
Here's an example of my custom code (can't upload custom css/txt in upload files)
/* Overriting horizontal rule */
hr {
height: 3px;
max-width: 90%;
margin: 15px auto 20px;
background-color: #2f72ff;
border: 0 none;
}
/* no dimming of page on menu hover */
.hornav > ul > li::after {
display: none;
}
References
- more than a month ago
- Commercial Templates
- # 2
Thank you
The logo will resize to the available space. Considering your menu, the available space is rather small on some screen sizes. To amend you have 2 options...
1. Increase the mobile menu breakpoint (Template Settings -> Responsive Options).
2. Allow the logo and menu to wrap by adding the following to the Custom CSS field of your template settings...
Your current Custom CSS only effects HR tags. Checking your HR tags on all screens size, your CSS appears to take effect without issue.
Ciaran
The logo will resize to the available space. Considering your menu, the available space is rather small on some screen sizes. To amend you have 2 options...
1. Increase the mobile menu breakpoint (Template Settings -> Responsive Options).
2. Allow the logo and menu to wrap by adding the following to the Custom CSS field of your template settings...
.header_main {
flex-wrap: wrap;
}
Your current Custom CSS only effects HR tags. Checking your HR tags on all screens size, your CSS appears to take effect without issue.
Ciaran
- more than a month ago
- Commercial Templates
- # 3
Ciaran,
thanx for your prompt answer I will try this and come back to you.
As for HR tags: They only work as long as my formatting lives in the custom field of the template. As soon as I remove them from there, and they are only noted in custom.css, they will NOT work on mobiles but only on desktop browsers.
Another example:
It's the same, on desktops it's working, on mobiles not (when removed from template settings).
Cheers, Chris
thanx for your prompt answer I will try this and come back to you.
As for HR tags: They only work as long as my formatting lives in the custom field of the template. As soon as I remove them from there, and they are only noted in custom.css, they will NOT work on mobiles but only on desktop browsers.
Another example:
/* Format external links */
a[href^="http://"]:after,
a[href^="https://"]:after,
a[href^="ftp://"]:after {
font-family: 'FontAwesome';
content: " ""\f08e";
}
It's the same, on desktops it's working, on mobiles not (when removed from template settings).
Cheers, Chris
- more than a month ago
- Commercial Templates
- # 4
Hi there Ciaran,
thank you so much for your tips, the header now does what I have expected. Custom.css seems to load also on mobiles, with the one exception: Ihave chanded the way, things noted as 'code' should displayed. That works in desktop browsers, but not on mobiles. I see that the original format in nexus.css should have
but it hasn't on mobiles. Also the rest of my formatting only seems to apply to desktops
Any suggestions?
Cheers, Chris
thank you so much for your tips, the header now does what I have expected. Custom.css seems to load also on mobiles, with the one exception: Ihave chanded the way, things noted as 'code' should displayed. That works in desktop browsers, but not on mobiles. I see that the original format in nexus.css should have
border-radius:3px;
but it hasn't on mobiles. Also the rest of my formatting only seems to apply to desktops
code {
border: 1px solid #2f72ff;
background-color: rgba(47, 114, 255, 0.2);
}
Any suggestions?
Cheers, Chris
- more than a month ago
- Commercial Templates
- # 5
Hi Chris
Could you try clearing the cache on your mobile device? In each case that we have tested, a mobile device is loading the CSS in the same manner as desktop. Using the Custom CSS field in the template settings to add your CSS, adds it inline in the pages head. Inline CSS is not cached by the browser which might explain the reason why you find a difference between desktop and mobile.
Ciaran
Could you try clearing the cache on your mobile device? In each case that we have tested, a mobile device is loading the CSS in the same manner as desktop. Using the Custom CSS field in the template settings to add your CSS, adds it inline in the pages head. Inline CSS is not cached by the browser which might explain the reason why you find a difference between desktop and mobile.
Ciaran
- more than a month ago
- Commercial Templates
- # 6
Hi Ciaran,
that did it - sorry, I feel so stupid. On a desktop browser this would come naturally, but on a mobile - the option is well hidden, so I did not think of it.
Thank you for your patience and have a nice day.
Cheers, Chris
that did it - sorry, I feel so stupid. On a desktop browser this would come naturally, but on a mobile - the option is well hidden, so I did not think of it.
Thank you for your patience and have a nice day.
Cheers, Chris
- more than a month ago
- Commercial Templates
- # 7
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »