• Resolved Archie Makuwa

    (@archie22is)


    Hey guys,

    I have a custom post type which I pull (twice) using (two) custom templates. Obviously each template is styled and renders the content differently.

    I want one on the other image to render the content with image and the other on the other template to only render clean content. I know I can use:
    preg_replace("/<img[^>]+\>/i", "", $content);

    But how do I get to tell it to only apply that on specific templates only using functions.php?

    Thank you in advance guys.

Viewing 1 replies (of 1 total)
  • Thread Starter Archie Makuwa

    (@archie22is)

    Okay guys, I finally decided to abandon ship. It is a small task and I have decided to rather use CSS instead of having a headache. I am 98% done with the project, I can’t waste time of the issue. Sorry ??

    How I did it:

    /* Hide First Image on Single Posts */
    p img.size-full{
    	display: none;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Images’ is closed to new replies.