how to I add code for a widget that I want to show up on the home page?

Discussion in 'RoadFighter WordPress Theme' started by sandradohn, Jul 29, 2015.

  1. sandradohn

    sandradohn Member

    Joined:
    May 11, 2012
    Messages:
    481
    Likes Received:
    1
    The directions say " post code before the last </body> tag of the page where you want the widget to show. I do not know where this is on the road fighter theme....Please advise me as to how to do this. Thanks, Sandra

    the address is fastfoodmanagercertification.com
     
  2. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi, Sandra!

    Could you please provide us some edited screenshot of the section of homepage where you want to paste your code so that we can assist you accordingly?

    Thanks,
    Praveen
     
  3. sandradohn

    sandradohn Member

    Joined:
    May 11, 2012
    Messages:
    481
    Likes Received:
    1
    It is a video that slides in after a set amount of seconds that someone is on the page or I can set it to show up when someone starts to exit the page. The ides is to get them to opt in onto my clients list. Here is the code they provided me.
    <script type="text/javascript" src="//vpf.ssl-redirect.leadrush.com/assets/js/sc.js"></script>
    <script type="text/javascript">
    var widgetPosition = 'tr';
    var widgetDelay = 3;
    var widgetVideoID = '3139';
    var widgetLocation = '//vpf.ssl-redirect.leadrush.com/';
    widgetSpace.sc();
    (function() {
    var cw = document.createElement('script');
    cw.type = 'text/javascript';
    cw.async = true;
    cw.src = widgetLocation + 'assets/video/widget.js?v=ipv5';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(cw, s);
    })();
    </script>
    Please let me know how to set this up to display on the home page. Thanks, Sandra
     
  4. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi Sandra,

    I have tested your code at our end but unfortunately, it's not working.

    Anyway, you will find the last </body> in the footer.php file of the theme folder.
    OR
    If you want to use this code in homepage, then go to Appearance=>Widgets, drag and drop a text widget in Homepage sidebar widget area and paste your code in it.

    Hope it will be helpful to you.

    Thanks,
    Praveen
     
  5. sandradohn

    sandradohn Member

    Joined:
    May 11, 2012
    Messages:
    481
    Likes Received:
    1
    Can you let me know where the footer.php file of the theme folder is located? Also, I did not see a homepage sidebar widget under appearance-widgets. I only see the widgets that are on the bottom of the theme.....Please advise. Thanks, Sandra
     
  6. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi Sandra,

    Please follow the screenshots given below.
    1>For footer.php
    roadfighter_footer_page.png
    Note:- For your information, I am using "WP-Editor" plugin to edit files.
    You can also download and use it from the link https://wordpress.org/plugins/wp-editor/.

    After activating this plugin, you will get the same screen as shown in the screenshot.

    2> For Homepage widget area
    Roadfighter_paste_script_code_in_homepage_widget_area.png

    Hope it would be helpful to you :)

    Thanks,
    Praveen
     

Share This Page