Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Insert AdSense code after the 3rd flex_column #889123
    This reply has been marked as private.
    in reply to: Insert AdSense code after the 3rd flex_column #887356

    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 6 years, 11 months ago by Enfolded.
    in reply to: Insert AdSense code after the 3rd flex_column #883965

    Hi,

    This is what I assumed. Wouldn’t it be just a function saying

    open
    after the 3rd flex_column, enter this javascript code
    close

    Could you make a first draft of how this function would work?

    in reply to: Make menu show by hovering 'Menu' #736896

    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?

    in reply to: Make menu show by hovering 'Menu' #733716

    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

    in reply to: Make menu show by hovering 'Menu' #731370

    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?

    in reply to: Make menu show by hovering 'Menu' #701476

    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

    in reply to: Make menu show by hovering 'Menu' #699353

    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’

Viewing 8 posts - 1 through 8 (of 8 total)