• I’m building a website and I’m trying to paste the link for a product. The link has JavaScript and it appears as text .

    How do I convert that to a link?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Can you post the full code here?

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    
    
    <script type="text/javascript" src="//cdn.refersion.com/creative.js"></script>
    <script>$rfsn_creative.generate('refersion_client/13105/creatives/dynamic/71953-8f37ee373e5aec464f6670a76e77213d.json', {
    	aid: '4883327.c0dff8'
    });</script><div id="rfsn_img_71953"></div>

    Did you remember to use the CUSTOM HTML block? I just tested it and it works.

    The paragraph block accepts everything you put there as text, and it will display it as such (provided WordPress doesn’t strip off some code for security reasons). If you use the Custom HTML block, anything you put in it will be “rendered” or converted for you automatically.

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    Thank you. How do I use or find the custom block feature ? I wasn’t told to use it so I can’t remember to use it

    If you’re using the new WordPress editor (aka Gutenberg), type “HTML” after you click the PLUS(+) button to insert a new block.

    If you’re using the old editor (ie Classic Editor plugin), you’ll need to switch to the “Text” view to paste your code. There are no blocks here.

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    Thank you. So text editor and click code? I’m going to try it now

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    Nothing is showing up

    Can you clarify what you mean by “nothing is showing up”? The “custom HTML block” doesn’t show up?

    Are you using the Gutenberg editor? Classic Editor? Or some other 3rd-party page builder?

    Can you give a link to the page in question so I cann take a look?

    Standing by.

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    I use the classic editor. No link showed up as it did for you.

    I’m trying something different but I used WordPress

    The regular link and formatted text and image shows up. Tomorrow or today will will try the JavaScript The software is bbPress which is WordPress but a little different.

    Thank you

    I use the classic editor. No link showed up as it did for you.
    ….
    The software is bbPress which is WordPress but a little different.

    The Gutenberg and Classic editors are for WordPress.

    bbPress is not WordPress. bbPress is a WordPress forum PLUGIN, with its own editor that has nothing to do with WordPress’ Gutenberg or Classic Editors. This key part of your setup should have been brought out in your very first post.

    In any case, I just installed the bbPress plugin and set up a simple forum to test this for you. And the code got rendered correctly as before, as shown below

    I’ve put the live link to the test bbPress forum post below, but this sandbox site will be live for only 24 hours. So I’ve also I’ve taken a screenshot below.

    https://s-qv8xbcdvk66bl.eu1.wpsandbox.org/forums/topic/hello-world/

    At this point, I need these three critical pieces of information before I can be of any further help to you.

    1) Kindly confirm if you’re using an administrator-level account. If not, please confirm the WordPress user type you’re using to make this post. I want to confirm WordPress is not stripping out the code for lower-privileged users.

    2) Kindly give a screenshot of the screen where you’ve entered the code. I want to confirm the specific editor you’re using (even bbPress can be configured with a custom editor) and that the code is going where it should go.

    3) Please give a link to a page on your website where you’ve posted this code. It doesn’t have to be a live link that Google can index (eg you can use the CODE button while posting), but I need enough info to be able to visit the page in question and check exactly what code WordPress is outputting.

    It’s OK if you don’t want to provide any or all of this information. But, without these, there’s not much I can do to help you further.

    Standing by.

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    I added bbPress two nights ago. It wasn’t a factor in my first post.

    I’m going to try the forum part of it. The blog isn’t working properly.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Link With JavaScript’ is closed to new replies.