1. chrishoefliger
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 05 September 2019
  5.  Subscribe via email
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)
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Could you provide a URL to this issue along with the selector you are using.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
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;
}
References
  1. https://www.jug-zueri.ch
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
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...

.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
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
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:

/* 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
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
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

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
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
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
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
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
  1. more than a month ago
  2. Commercial Templates
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok