Can I put the codes into the website somewhere?

This topic has 9 replies, 3 voices, and was last updated 6 months, 1 weeks ago ago by Andrew Mitchell

  • Avatar: coffeedog
    coffeedog
    Participant
    March 5, 2024 at 14:29

    I need to insert a code into the template where to put it? so that every update doesn’t erase it?

    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
    var conversionConf = {
      id: 100199606,
      value: null
    };
    if (window.rc && window.rc.conversionHit) {
      window.rc.conversionHit(conversionConf);
    }
    </script>
    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
    var conversionConf = {
      id: 100199606,
      value: null
    };
    if (window.rc && window.rc.conversionHit) {
      window.rc.conversionHit(conversionConf);
    }
    </script>
    8 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    March 5, 2024 at 15:08

    Dear @coffeedog,

    We trust this message finds you well.

    We have noted that you are utilizing a child theme for your WordPress site. To proceed with the necessary enhancements, we kindly request that you append the following script to the functions.php file located within your child theme directory:

    
    add_action('wp_head', 'n2t_wp_head');
    function n2t_wp_head(){
    	?>
    	<script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    	<script>
    		var conversionConf = {
    			id: 100199606,
    			value: null
    		};
    		if (window.rc && window.rc.conversionHit) {
    			window.rc.conversionHit(conversionConf);
    		}
    	</script>
    	<?php
    }
    

    Please be advised that the aforementioned scripts will be executed on all pages across your website.

    Should you require any further assistance or have any queries, please do not hesitate to reach out to us.

    We appreciate your attention to this matter and look forward to your successful implementation of the code.

    Warm regards,
    The 8Theme Team

    Avatar: coffeedog
    coffeedog
    Participant
    March 5, 2024 at 18:41

    Okay, please, I need this code in there.

    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
      var retargetingConf = {
        rtgId: 1458914
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>
    Avatar: Justin
    Luca Rossi
    Support staff
    March 6, 2024 at 05:06

    Dear @coffeedog,

    We hope this message finds you well.

    We would appreciate it if you could provide us with guidance on the appropriate location for the implementation of the code in question.

    Thank you for your assistance.

    Best Regards,
    The 8Theme Team

    Avatar: coffeedog
    coffeedog
    Participant
    March 6, 2024 at 12:27

    Like the code before, I want to put it on the web

    Avatar: Justin
    Luca Rossi
    Support staff
    March 6, 2024 at 12:31

    Dear @coffeedog,

    We kindly request that you append the following script to the functions.php file located within your child theme directory:

    
    add_action('wp_head', 'n2t_wp_head');
    function n2t_wp_head(){
    	?>
    	<script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    	<script>
    		var conversionConf = {
    			id: 100199606,
    			value: null
    		};
    		if (window.rc && window.rc.conversionHit) {
    			window.rc.conversionHit(conversionConf);
    		}
    	</script>
    	<?php
    }
    

    Should you require any further assistance or have any queries, please do not hesitate to reach out to us.

    Warm regards,
    The 8Theme Team

    Avatar: coffeedog
    coffeedog
    Participant
    March 6, 2024 at 16:04

    I think I’ll clean up this code so I can add it too

    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
      var retargetingConf = {
        rtgId: 1458914
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>
    Avatar: Justin
    Luca Rossi
    Support staff
    March 7, 2024 at 04:27

    Hi @coffeedog,

    So the full of code should be like this:

    
    add_action('wp_head', 'n2t_wp_head');
    function n2t_wp_head(){
    	?>
    <script type="text/javascript" src="https://c.seznam.cz/js/rc.js"></script>
    <script>
      var retargetingConf = {
        rtgId: 1458914
      };
      if (window.rc && window.rc.retargetingHit) {
        window.rc.retargetingHit(retargetingConf);
      }
    </script>
    	<?php
    }
    

    Warm regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 9, 2024 at 17:00

    Dear coffeedog,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘can I put the codes into the website somewhere?’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.