This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #92295
     davellan
    Participant

    Is there a simple way of adding the conversion pixel script to a Kleo WP site? The javascript section in the settings adds to the footer, whereas the FB pixel wants to be in the header.

    #92359
     sharmstr
    Moderator

    Couple of options:

    http://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/

    Use the wp_head action https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    COPY CODE
    
    function add_fb_conversion() { ?>
    	<script>
    		//code here
    	</script>
    <?php }
    add_action( 'wp_head', 'add_fb_conversion', 10 );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #92374
     davellan
    Participant

    Got it. Thank you!

    #92379
     sharmstr
    Moderator

    You’re welcome.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?