Viewing 2 replies - 1 through 2 (of 2 total)
  • No idea – without more information – theme? Page? Link to site?

    Thread Starter mpn_zep

    (@mpn_zep)

    Hi.

    My theme is Snapshot from WooThemes.

    The website is this one.

    I´ve tried to add `<?php
    echo preg_replace(‘/<img[^>]+./’,”,get_the_content());
    ?>`
    To remove image from the description.
    The problem is it shows this:
    [caption id="attachment_60" align="alignnone" width="300"] Pólo Manga Curta[/caption]

    I would like to display, only the description…

    So I´ve tried to add this code at the top of ‘functions.php’:

    add_filter( 'disable_captions', create_function( '$a','return true;' ) );

    Still I keep the text ‘[caption id="attachment_60" align="alignnone" width="300"] Pólo Manga Curta[/caption]‘

    [Please do not create duplicate threads – answered here:
    http://wordpress.org/support/topic/how-to-remove-image-from-description-on-theme-snapshot-from-woo-themes?replies=2 ]

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

The topic ‘Remove image from description’ is closed to new replies.