Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Logan Knight

    (@logan-knight)

    Never mind, it’s now started cutting off part of the code in Firefox, and won’t actually add the link in Chrome.

    Thread Starter Logan Knight

    (@logan-knight)

    Okay I’ve actually made it accept javascript as a link by adding

    function ss_allow_javascript_protocol( $protocols ){
        $protocols[] = 'javascript';
        return $protocols;
    }
    add_filter( 'kses_allowed_protocols' , 'ss_allow_javascript_protocol' )

    to functions.php (from here)

    and made it stop cutting characters out of the code by adding

    function myclean_url( $url, $original_url ) {
        return esc_html( $original_url );
    }
    add_filter( 'clean_url', 'myclean_url', 10, 2 );

    also to functions.php (from here)

    But, wordpress still removes the final semicolon from the end of the code, which I need for it to work.
    In the URL section of formatting.php it has code that removes certain trailing characters, but even if I take semicolon out of that or remove that part of the file completely, it still removes it.

    Any ideas?

    Thread Starter Logan Knight

    (@logan-knight)

    Any update on what the issue might be?
    I’ve now noticed that one of the ones that wasn’t showing the latest post has corrected itself, while two other links have taken up the torch of showing old posts.

    Thread Starter Logan Knight

    (@logan-knight)

    Thanks, appreciate the help.

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