This topic has 2 replies, 2 voices, and was last updated 6 years by sirpereira.
-
Author
-
February 18, 2018 at 07:39 #189016sirpereiraParticipant
Hello! How can I override page-parts/post-content-masonry.php in child theme?
I am looking to disable animations from the homepage in the News Magazine template.
February 18, 2018 at 16:29 #189039Kieran_SQModeratorHi,
If you would like to disable the animations only on the homepage you can use the below CSS in your KLEO Child theme’s style.css by going to WP Admin > Appearance > Editor > KLEO Child > Style.css or you can add the CSS via Theme Options > General Settings > Scroll to: ‘Quick CSS’
COPY CODE.home-page .one-by-one-animated .start-animation .el-appear, .home-page .kleo-thumbs-animated.th-appear img.start-animation, .kleo-transform .start-animation.el-appear { -webkit-animation: none; -o-animation: none; animation: none; opacity: 1; -moz-transform: none; -webkit-transform: none; -o-transform: none; transform: none; } .home-page .one-by-one-animated .start-animation .el-appear, .home-page .kleo-thumbs-animated.th-appear img.start-animation, .kleo-transform .start-animation.el-appear { -webkit-animation: none; -o-animation: none; animation: none; opacity: 1; -moz-transform: none; -webkit-transform: none; -o-transform: none; transform: none; }
You will need to purge your website cache, front-end cache (Ctrl+F5) and purge any CDN to see the changes.
If you would like to disable them sitewide you can go to Theme Options > Miscellaneous > Option: ‘Site-Wide Animations*’ and select either ‘Disable on all devices’ or ‘Disable on mobile devices only’.
To override the post-content-masonry.php file in the KLEO Child theme you will need to create a folder title ‘page-parts’ within the Child theme and copy the file into it. You can then safely make any edits you desire and they’ll be automatically used.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.