How can I remove images inside [CONTENT] ?

  • Jean-Francois
    Jean-Francois
    Newbie 53 points
    August 5, 2016 at 10:43 pm

    How can I remove images inside [CONTENT] ?
    I see that solution:

    How to remove images from [CONTENT] section?


    but that’s not good, I loose all my HTML…

    regards,

  • Jean-Francois
    Jean-Francois
    Newbie 53 points
    August 5, 2016 at 11:20 pm

    I found a solution, but not the best:
    In class_shortcodes.php
    on line 1037 add // before if($extra ){
    on line 1038 add // before echo do_shortcode(‘[MEDIA]’);
    on line 1039 add // before }

    If someone know a better solution, thanks in advance !

  • Jean-Francois
    Jean-Francois
    Newbie 53 points
    August 6, 2016 at 8:41 pm

    So to prevent people for paying for design job, here’s a better solution:

    Don’t do what I did on my first post…

    We will make a new shortcode [CONTENT]

    Add this to your _functions.php: https://pastebin.com/riR6Qsuy

    After call with: [CONTENTABC]


  • Josh
    Super Guru 13,875 points
    August 8, 2016 at 12:45 pm

    Hello Jean,
    You can use some css to remove this.Please provide url

  • Jean-Francois
    Jean-Francois
    Newbie 53 points
    August 8, 2016 at 10:15 pm

    CSS will work (display:none) but I don’t want to load content that I don’t need.

    Now the content is without the carousel ! 🙂

  • Marie
    Marie
    Super Guru 1,818 points
    August 9, 2016 at 1:12 am

    Thank you for sharing Jean 🙂

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

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes