Java Script not working under Gd->Advertise widget

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #425892

    rigots
    Lifetime Member
    Post count: 275

    Hi, I have some java script code that I been given to advertise myself in other websites.
    This java script creates a home search widget and when pressed it takes you to my real estate home search page.

    I want to advertise my real estate services on my GeoDirectory website. So have tried copying the java script to the “GD->Advertise” and to the “Custom HTML” widget but nothing get displayed, as if the java code below did not exist:

    <script src=”http://www.rigotorres.com/webcapture/type/mediumrectangle/” type=”text/javascript”></script>

    Now, if I place that same java code on the body of a regular html file then this home search widget displays just fine, any idea why this code is not working under my GeoDirectory website?
    Any suggestions one what I can do so this code can work under my GeoDirectory website?

    Thank you.

    #425954

    Alex Rollin
    Moderator
    Post count: 27815

    It is a general WordPress setting that Javascript is stripped out of text entry areas.

    GD Includes an option to add JS code to header or footer at GD – Design – Scripts

    http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/

    #426043

    rigots
    Lifetime Member
    Post count: 275

    Thank you I see.
    I tried copying that java script content to “Gedirectory->Design->Scripts->Header Script code” and to “Gedirectory->Design->Scripts->Footer script code” and nothing showed up in the header or footer of my website.

    <script src=”http://www.rigotorres.com/webcapture/type/mediumrectangle/” type=”text/javascript”></script>

    I am I missing a step? or why does nothing show up in the footer or header of my website.

    Thank you.

    #426057

    Alex Rollin
    Moderator
    Post count: 27815

    Post your details here in a private reply and we can look at why it is not being injected.

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    FTP Credentials
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount