Text turns red upon clicking search box

  • Author
    Posts
  • #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

    #64742

    It 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”&gt;

    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&#8221; style=”color: rgb(255, 0, 0);”>

    #64743

    The 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 red

    Removing line 78 seems to fix the issue…

    • This reply was modified 5 years ago by Tezzer.
    #64745

    Yes, this does fix the issue. Hopefully this will be addressed in the next udpate. Thank you very much Tezzer.

    #64754

    Hopefully… I imagine it got shoved in for testing purposes & didn’t get removed? Otherwise it seems a bit weird to me 🙂

    #64807
    Zed
    Cryout Creations mastermind

    The 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.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Text turns red upon clicking search box’ is closed to new replies.