Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hey,
Thanks for the code!
I inserted the code in functions.php but it shows only debugs a code in the very bottom of my page as:'; }); } $(document).ready(function() { a(); }); })(jQuery);
The code I made (after insetting Google Adsense looks like this)
// custom script add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { function a() { $('.flex_column:nth-child(3n)').each(function() { $(this).append('<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Ads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-123456789123" data-ad-slot="123456789" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>'); // some other code here }); } $(document).ready(function() { a(); }); })(jQuery); </script> <?php }
Would you please help edit the above code so it works? :)
- This reply was modified 7 years ago by Enfolded.
Hi,
This is what I assumed. Wouldn’t it be just a function saying
open
after the 3rd flex_column, enter this javascript code
closeCould you make a first draft of how this function would work?
Hi Andy,
Shouldn’t it be just a simple PHP snippet?
If I hire a freelance developer, how should I tell him it should be done?
Hi guys,
Thanks for your responses, unfortunately your understanding is not correct.
I wish to show the Enfold class .main_menu by the text ‘Menu’.
I imagine this being a PHP snipet, not a CSS one.
Hope you understand I wish to get done.
/ Enfolded
Hi Yigit,
Late respond, but your last answer didn’t respond to the question I asked, so I didnt reply back. I’d appreciate if you could answer again.
I want to show the Desktop menu by hovering ‘Menu’. Means ot having a mobile menu for desktop mode, but rather the desktop menu with desktop styling etc.
How can I make this menu show by a button?
Alright that works fine for responsive mode. However, what I wrote as a detail in the original description, and as for the webpage I linked – I want this the to activate for desktop-users, and that when they hover ‘Menu’ – the desktop menu will show. Please once again look what I mean at http://www.prisjakt.nu
Hi Yigit,
Thanks for your quick respond.
I can use any of those, but that’s not what I am asking for.
Which one of them I use, they will still have a 3-line button when activating it. I am talking about the demo li.av-burger-menu-main menu-item-avia-special
I wish to replace the 3-line button with the word ‘Menu’ – so instead of clicking a 3-line button, the user would click a text saying ‘Menu’
-
AuthorPosts