1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add script into wordpress widget areas

Discussion in 'White Hat SEO' started by staypositive, Oct 10, 2016.

  1. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    Hi Pros and Gurus,


    I wanted to know if anyone can share how to insert <script> links to wordpress widget area?

    I know that i can add them in header.php areas after googling, however as i made a slideshow from CJ.com

    thus, i wanna add the script into my widget area...

    pls can anyone share?

    my link is something like this below: ( hidden link )

    <script type="text/javascript" language="javascript" src="http://www.xxxxxxxxxxxxxxxxxxxxxxxxx></script>


    many thanks!! sorry if i posted in the wrong area..

    i did tried to google and searched around but no hope..
     
  2. adorableseo

    adorableseo Jr. VIP Jr. VIP

    Joined:
    Apr 9, 2014
    Messages:
    730
    Likes Received:
    44
    Home Page:
    Simple put TEXT widget area and there you will paste the SCRIPT.....
     
    • Thanks Thanks x 3
  3. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    hi thanks for ur reply

    i have visual composer text widget and also blackstudio tiny mce, but after paste it wont show in widget..
     
  4. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,184
    Likes Received:
    2,398
    Occupation:
    blog creator
    Location:
    UK
    It should show, add it into your text widget and click save as stated already by adorableseo. Also clean your browser cache, no reason not to work as that's what it is for
     
    • Thanks Thanks x 1
  5. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    thanks both!

    so sorry, but it just wont work :(

    pls see attached what i did, appreciate any advice.
     

    Attached Files:

    • z1.PNG
      z1.PNG
      File size:
      33.9 KB
      Views:
      37
    • z2.PNG
      z2.PNG
      File size:
      33.3 KB
      Views:
      34
  6. Mex

    Mex Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2016
    Messages:
    184
    Likes Received:
    67
    The first thing to check is if your changes are getting reflected on your code.
    Press Ctrl + U to see the source code of the site and see if your script tag is there.
    If the script tag is on your source you will have to check your widget code.
     
    • Thanks Thanks x 1
  7. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,184
    Likes Received:
    2,398
    Occupation:
    blog creator
    Location:
    UK
    Are you sure the address is correct, i'm getting no such site when looking on google. i just tried your code and got a blank widget. if the address is correct then there is no reason for it not to work.
     
    • Thanks Thanks x 1
  8. soccerlover

    soccerlover Jr. VIP Jr. VIP

    Joined:
    Jun 12, 2014
    Messages:
    3,184
    Likes Received:
    1,682
    Gender:
    Male
    Occupation:
    Seo Analyst :D
    Location:
    ♥♥♥ BHW ♥♥♥
    Home Page:
    If you are still facing an issue, do let me know.
    I'll help you with skype sharing screen :)
    It is hardly few minutes task :D
     
    • Thanks Thanks x 1
  9. casperwebs

    casperwebs Registered Member

    Joined:
    Aug 20, 2016
    Messages:
    66
    Likes Received:
    17
    Gender:
    Male
    Occupation:
    Job-Less
    Location:
    India
    Home Page:
    Use raw html/raw javascript in visual composer
     
    • Thanks Thanks x 1
  10. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    hi all.. i thank you so much for all u guys spending time to educate / share with me.

    however... it is still not working, i tried using raw JS in visual composer, cleared cache, it will make a empty area like attached in pics.

    z1.PNG z2.PNG z3.PNG
     
  11. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM

    the address is direct copy from cj.com create widget area...
     
  12. shanna_doll

    shanna_doll Power Member

    Joined:
    Apr 10, 2012
    Messages:
    653
    Likes Received:
    323
    Location:
    Bosnia and Herzegovina
    First try the script on a completely new .html file that's uploaded to the server.
     
    • Thanks Thanks x 1
  13. VeyronXS

    VeyronXS Junior Member

    Joined:
    Jan 27, 2016
    Messages:
    199
    Likes Received:
    46
    Occupation:
    Internet Marketer
    Location:
    World of Freedom
    You can try plugins like header & footer or image widget plugins

    Both should do the job. There are more plugins like widget optimizer etc, just give an hour of trial and error
     
    • Thanks Thanks x 1
  14. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    sir.

    tried image widget.. but its image, how can i incorp the <script>?
     

    Attached Files:

    • z4.PNG
      z4.PNG
      File size:
      17 KB
      Views:
      25
  15. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,147
    Likes Received:
    1,875
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods
    Screenshare with one of us and we can handle it.
     
    • Thanks Thanks x 1
  16. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,184
    Likes Received:
    2,398
    Occupation:
    blog creator
    Location:
    UK
    If the code is correct and you added it to the text widget then there is no reason why It shouldn't work. Get another code from amazon for example a banner code and enter it in your text widget and see if that happens
     
    • Thanks Thanks x 1
  17. casperwebs

    casperwebs Registered Member

    Joined:
    Aug 20, 2016
    Messages:
    66
    Likes Received:
    17
    Gender:
    Male
    Occupation:
    Job-Less
    Location:
    India
    Home Page:
    I know you stumbled with question, does it requires any header script to be attached in order to work?
     
  18. casperwebs

    casperwebs Registered Member

    Joined:
    Aug 20, 2016
    Messages:
    66
    Likes Received:
    17
    Gender:
    Male
    Occupation:
    Job-Less
    Location:
    India
    Home Page:
    http://www.cj.com/publisher/deep-link-automation
    or it may be possible that script first need to collect some data or take time before showing ad.
     
  19. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    hi

    cj.com didnt say so

    i just copy the code from it and paste
     

    Attached Files:

    • z1.PNG
      z1.PNG
      File size:
      81.9 KB
      Views:
      22
  20. staypositive

    staypositive Power Member

    Joined:
    Jul 28, 2015
    Messages:
    621
    Likes Received:
    66
    Occupation:
    Hiring content writer, please PM
    thanks for taking time to search buddy, much appreciated

    but i think i am in the widget area, not deep link?