-
AuthorPosts
-
June 8th, 2018 at 23:07 #64740
Hi, still using this great theme, but lately (after latest update I believe) when clicking on search box (located in the main menu, top right of page) text turns red! I have checked/deactivated all plugins to see if anything clashes but no. So I am assuming it’s a weird bug… Thanks for your help.
Website: reflexology-imera.eu
June 9th, 2018 at 06:46 #64742It tacks on to the body tag
- style=”color: rgb(255, 0, 0);
before clicking search icon:
<body class=”page-template page-template-blog-page page-template-blog-page-php page page-id-2 septera-image-none septera-caption-one septera-totop-normal septera-no-table septera-over-menu septera-responsive-headerimage septera-responsive-featured septera-magazine-two septera-magazine-layout septera-comment-placeholder septera-normalizedtags septera-article-animation-slide” itemscope=”” itemtype=”http://schema.org/WebPage”>after clicking search icon:
<body class=”page-template page-template-blog-page page-template-blog-page-php page page-id-2 septera-image-none septera-caption-one septera-totop-normal septera-no-table septera-over-menu septera-responsive-headerimage septera-responsive-featured septera-magazine-two septera-magazine-layout septera-comment-placeholder septera-normalizedtags septera-article-animation-slide” itemscope=”” itemtype=”http://schema.org/WebPage” style=”color: rgb(255, 0, 0);”>June 9th, 2018 at 07:28 #64743The Error is caused in the following:
…wp-content\themes\septera\resources\js\frontend.js line 78/* Search form animation */
function septera_searchform_animation() {
var i = 0;
jQuery( “#access .menu-search-animated > a” ).on( ‘click’, function( event ) {
event.preventDefault();
});
jQuery( “#access .menu-search-animated > a” ).on( ‘mousedown focus’, function( event ) {
jQuery(‘body’).css(‘color’, ‘#ff0000’); <- HERE is causing the text to turn redRemoving line 78 seems to fix the issue…
- This reply was modified 6 years ago by Tezzer.
June 9th, 2018 at 11:12 #64745Yes, this does fix the issue. Hopefully this will be addressed in the next udpate. Thank you very much Tezzer.
June 9th, 2018 at 16:20 #64754Hopefully… I imagine it got shoved in for testing purposes & didn’t get removed? Otherwise it seems a bit weird to me 🙂
June 10th, 2018 at 16:16 #64807ZedCryout Creations mastermindThe accessibility changes in the latest update gave us plenty of trouble and we had to use plenty of debugging to sort things out.
Looking back, I guess a console.log() would’ve been a lot safer 😀Thanks for pointing that out.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘Text turns red upon clicking search box’ is closed to new replies.