• Andrew

    (@ndrwglrzayahoocom)


    Hello.

    Can anyone tell me where to find the code for displaying images in posts?

    Please help,

    Andrew

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi deepbevel, thanks for your response.
    I’m not a fan of plugins and prefer to code in functions file.

    In this instance, it was only for one specific category and I found a simple, but a bit dirty, work-around: add a body class to the specific page, then display: none in the css for that page !

    In case anyone else is reading this, here’s the code I used

    body#projects p.wp-caption-text {
    display: none;
    }

    I’m surprised there is not a simple function to allow the filtering of captions!

    actually, that looks pretty clean to me.

    Some excerpt control from the admin settings would be a nice core feature, some themes include it to some extent. But actually, isn’t that kinda like using a plugin? (haha) .. I always prefer to code myself too if I can, then I know exactly what’s going on and it’s easier to tweak it later.

    I’m finding css to be a great solution more and more all the time, it’s usually not to complicated, especially with a dev tool like Firebug. Nice solution!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Where To Find Code For Image Posts?’ is closed to new replies.