-
Posts
36 -
Joined
-
Last visited
Community Answers
-
dariokomazec's post in Redirecting Link with jQuery. Please Help ! was marked as the answer
Not working as needed, it opens up google.com but not in a new tab.
I have figured it out that changing the place works great so this is the final code:
<script> $(document).ready(function() { $('a[href="/search"]').attr('target','_blank'); $('a[href="/search"]').attr('href','https://www.google.com/'); }); </script>
-
dariokomazec's post in Redirecting Link with jQuery. Please Help ! was marked as the answer
<script> $(document).ready(function() { $('a[href="/search"]').attr('href','https://www.google.com/').attr("target", "_blank"); }); </script> I don't know is this good to do this this way but it works...? I have added :
.attr("target", "_blank"); to my code and now it opens google.com instead of /search in a new tab...
-
dariokomazec's post in How do I delete text at the bottom of mobile navigation menu was marked as the answer
Hi,
Go to Home/Design/Custom CSS and add this:
#mobile-location { display: none; } This code should remove the text.
After that you can go to Home > Settings > Advanced > Code Injection and check the scripts as bangank36 suggested above...
-
dariokomazec's post in Social Icons on Mobile ! Please HELP ! was marked as the answer
I have solved the problem:
1. Add social icons to Footer
2. in Styles make Search Icon visable and then hide it with CSS .Icon--search {display: none}
3. Add this code below to site header code injection and change #block-1fb5bb40728e7dd45230 to your own social icons block ID.
that's it.
<script src="https://code.jquery.com/jquery-3.5.1.min.js" ></script> <script> jQuery(document).ready(function($) { $('#block-1fb5bb40728e7dd45230').insertAfter('.Icon--search'); }); </script>