-
AuthorPosts
-
January 18, 2017 at 8:08 pm #735506
Support Team,
My client has requested that a specific piece of content be pushed in a certain order on mobile view.
I’m trying to get the icons labeled “schedule of upcoming events” and “for consumers” to load after the icon boxes (currently there is 3, but it might go down to 2, so maybe a 1/2 column element instead of the 1/3 elements that I’m currently utilizing).
Is this possible? Thank you so much!
January 23, 2017 at 9:48 am #737164Hey artisforever,
Sorry for the delay, we are happy to help you with this modification.
1. To change the column order in mobile we need to create 2 sets of icon boxes so one of them appears above and the other will display below the icons “SCHEDULE OF UPCOMING EVENTS” and “FOR CONSUMERS” then we will hide one of the set’s in mobile and one set in desktop.
2. Enable custom css class name for ALB elements http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
3. Add this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
/*Show only in mobile or desktop*/ @media only screen and (min-width: 769px) { .only_mobile { display: none !important; }} @media only screen and (max-width: 768px) { .only_desktop { display: none !important; }}
4. Add class name “only_desktop” and “only_mobile” to the icon box set’s to be displayed only on desktop and only on mobile.
Best regards,
Vinay- This reply was modified 7 years, 11 months ago by Vinay.
January 23, 2017 at 6:21 pm #737380Vinay! This is a really great way of approaching it, I will test this out and let you know if I run into any issues! Thank you SO much :) You’re the man!
March 27, 2017 at 2:43 am #767126I tried to get my ALB elements to work, and the options to appear on the builder end, but I could not get it to work!
I worked through 3-4 of your other support topics on activating it via the PHP file with no results. I’m not sure what I’m doing incorrectly :(
March 27, 2017 at 5:27 am #767185Hi,
Please, I
d like to know where are you putting the code to enable the custom CSS field, please. Ensure that you
re adding the code on the functions.php in the enfold folder.Best regards,
John TorvikMarch 27, 2017 at 9:04 pm #767734I said above that I tried activating it via the PHP file. It is just adding one line, so seems pretty simple unless your guide needs to be updated.
I noticed that a lot of your other issues on this was solved by removing some // lines because it was “commented out.” Well mine is pretty much blank besides the line that your guide says to add.I also added my log-in details above that will let you check.
Thanks,
March 28, 2017 at 12:24 am #767802John,
Another quick update, I’m using a child theme, and have been updating that functions.php file , not the original enfold functions.php file.
Thought this might change things for providing me with support on this topic, thanks again.
March 30, 2017 at 3:58 pm #769530Could I have an update on this please, client is trying to launch next week and I’ve asked for support about this since Monday. Thank you.
March 31, 2017 at 9:22 am #769794Hi artisforever,
Where do you wan to put these icons? Above the slider under “Contact”?
Best regards,
VictoriaMarch 31, 2017 at 5:26 pm #770094I have an idea of how the client wants it. I just need to be able to use custom CSS for my ALB elements. I’ll test the hierarchy after I can get the mobile/desktop hide views to work. Please help me with the PHP error, it keeps crashing my website when I get it wrong and I have to back it up via bluehost. Your guide is too minimal.
April 2, 2017 at 3:10 pm #770632I need help on this still please.
April 3, 2017 at 8:38 pm #771311*I updated my theme, added the PHP code, it did not crash my site this time, however the custom css field is still now showing up on any elements. Again, log-in data is above, my homepage is “how do you control myopia?”
Not sure what else to do.
April 5, 2017 at 7:10 am #772248 -
AuthorPosts
- You must be logged in to reply to this topic.