- This topic has 14 replies, 2 voices, and was last updated 5 years, 1 month ago by
Leo.
-
AuthorPosts
-
April 2, 2017 at 1:03 pm #300800
albabes
Hi Tom
How do I create a “mobile only” text link? Or, what do I use in GP Premium to accomplish that? I want the link to be centered, “above the Content” area, below the nav bar.I have it up now on Dbsatucson.org
Thanks
TomGeneratePress 1.3.46GP Premium 1.2.96April 2, 2017 at 1:12 pm #300803Leo
StaffCustomer SupportLooks like you almost got everything?
If you want that “Meetings” link to only show on mobile, then you can add the
hide-on-desktop
andhide-on-tablet
classes into the div like this:<div style="text-align:center" class="hide-on-desktop hide-on-tablet">
Let me know if this answers the question.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 2, 2017 at 2:05 pm #300822albabes
Hey thanks Leo
So this means “.hide-on-desktop hide-on-tablet” is on GP’s css file?
I way behind on Ccs5 mobile, damn
April 2, 2017 at 2:13 pm #300827albabes
Didnt work Leo. Still shows on Desktop. Dont have a tab, so cant chk those.
April 2, 2017 at 2:14 pm #300828albabes
Using
<div style="text-align:center" class="hide-on-desktop, hide-on-tablet"> <a href="/meetings/">Meetings</a> </div>
April 2, 2017 at 2:17 pm #300829albabes
Also tried with out the COMMA
<div style="text-align:center" class="hide-on-desktop hide-on-tablet"> <a href="/meetings/">Meetings</a> </div>
Nor can I find either
.hide-on-desktop
.hide-on-tablet
in either css files?April 2, 2017 at 2:20 pm #300831Leo
StaffCustomer SupportJust checked your site and it’s working for me. Maybe try clearing browser cache?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 2, 2017 at 2:35 pm #300832albabes
Shit your right. I even did a Ctrl | refresh button, to both FF and Chrome, to clear em. Not work.
Then I closed both, reopened em, and it was working.Cache is getting baffling these days.
Thanks Leo
PS. Why am I not finding the classes in either css files?
April 2, 2017 at 2:51 pm #300834Leo
StaffCustomer SupportYeah caching can be a pain.
It should be in the unsemantic-grid.min.css file.
Glad I could help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 2, 2017 at 3:12 pm #300846albabes
Have never seen a file “unsemantic DOT anything” in any of the WP GP child theme?
Ftp only?
April 2, 2017 at 3:17 pm #300847Leo
StaffCustomer SupportShould be in wp-content > themes > generatepress > css.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 2, 2017 at 3:28 pm #300849albabes
But not Accesible via /wp-admin ?
April 2, 2017 at 3:35 pm #300850Leo
StaffCustomer SupportDon’t think so as they are two separate directory.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 2, 2017 at 10:52 pm #300916albabes
Thanks much Leo.
April 3, 2017 at 8:25 am #301110Leo
StaffCustomer SupportYou’re welcome!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.