• Resolved prcm777

    (@prcm777)


    Hello,

    I saw the other posts about removing the html span as I have the same issue where the html span code is visible on the downloads titles (perhaps due to the fact that it is a variable product and I tried to use the fix that was previously suggested and it did not work which was…

    ——-

    Please try using the following code to remove the span variation (if you still encounter this issue):

    • Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db
    • Add the following code to the end of it: add_action(‘init’, ‘trpc_remove_woo_wrap_variation’, 9999);
    • function trpc_remove_woo_wrap_variation(){
    • remove_filter( ‘woocommerce_product_variation_title’, ‘trp_woo_wrap_variation’, 8, 4;)
    • }
    • Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

    ——-

    So I downloaded the zip file, extracted it, added the code mentioned, uploaded the folder and file in it via ftp to plugins and went to wp plugins page and clicked activate and got this error:

    Plugin could not be activated because it triggered a fatal error.

    I had originally renamed the folder but then put the name back to the numeric string that it originally was and got the same error.

    Please advise.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Please, create a different plugin with this code and save it as a .zip file. Then upload it manually in WP Dashboard –> Plugins –> Add New –> Upload Plugin and it should not trigger any error.

    Let me know if you still need help with this.

    Thread Starter prcm777

    (@prcm777)

    Hello,

    It still gave the same error: Plugin could not be activated because it triggered a fatal error.

    This time I downloaded that again from the git link. I renamed it to: EmptyWPPlugin Then I updated it with the code below using text editor and added this at the very end:

    add_action(‘init’, ‘trpc_remove_woo_wrap_variation’, 9999);function trpc_remove_woo_wrap_variation(){ remove_filter( ‘woocommerce_product_variation_title’, ‘trp_woo_wrap_variation’, 8, 4;)}

    I put it right below this line: // Start writing code after this line!

    Here is a screenshot of the php file I edited, this link is valid for 1 week: https://ibb.co/kg4zCvb

    Once I did that, I compressed it, uploaded it, and it said it installed, but then when I clicked activate, I got that error.

    I’ve never done a plugin thing like this before. Please let me know if that is how I was supposed to do it because its not working.

    Thank you!

    Plugin Support Alex

    (@alexcozmoslabs)

    I will close this one. Let’s continue the conversation on: https://www.ads-software.com/support/topic/fata-error-14/#post-17398906

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Download html span issue’ is closed to new replies.