Post by Jonas92 » Fri Sep 28, 2018 5:02 pm

How can I change the text in the search box, which is visible in the mobile version of the site?

https://imgur.com/a/lXXG3Sk

New member

Posts

Joined
Fri May 26, 2017 3:58 pm

Post by synapseindia » Fri Sep 28, 2018 6:33 pm

You can use some smart trick of javascript to do the same. ;)

User avatar
Active Member

Posts

Joined
Thu Apr 05, 2018 2:27 pm

Post by Jonas92 » Fri Sep 28, 2018 6:44 pm

How can i do that? I only need to change the text of the mobile version, the desktop conversion is good.

New member

Posts

Joined
Fri May 26, 2017 3:58 pm

Post by DigitCart » Fri Sep 28, 2018 8:01 pm

You can do that with jquery:

Code: Select all

if ($(window).width() < 992) {
    $('[name="search"]').attr('placeholder', 'write your text here');
};

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: No registered users and 21 guests