New Landing How can we help? Themeforest Theme Support Dante how to disable autop in product meta section

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #105592
    alemarengo
    Member
    Post count: 695

    Hi support.
    I’d like to if it’s possible to disable autop in the Product Meta section within Woocommerce Product page.
    Usually, one can disable autop via remove_filter('the_content', 'wpautop'); and this affects post content.
    Waiting for your kind reply, many thanks.

    #105594
    alemarengo
    Member
    Post count: 695

    Hey!
    Sorry for double posting, but… I think I found the right solution (I have to test it deeply)
    remove_filter('get_product', 'wpautop');
    What do you think about?
    Could it affect negatively some other parts?

    #105897
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    That should work fine

    – Kyle

    #107122
    alemarengo
    Member
    Post count: 695

    Hi support.
    I was afraid but not confident about this solution: it doesn’t seem to work to me.
    Or better, it seemed to work, then no more… 🙁
    Nothing has changed in the meantime, except for some plugin updates.
    How should I fix that? Do you have any suggestion?
    Thanks.

    #107426
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Will forward to development team to see if there is any alternative.
    -Rui

    #107582
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    What exactly are you trying to do? Remove the line breaks? If so, you could just use this custom css:

    .product-short p {
    display: inline;
    }

    – Ed

    #112988
    alemarengo
    Member
    Post count: 695

    Ok Ed, thanks for reply.
    That css trick doesn’t do exactly what I expect.
    I’ll leave autop activated, since it seems unfeasible to disable it.
    Thanks.

    #113036
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    No problem!

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register