• Hi, everyone!

    I’m trying to apply a CSS only for standard post format, but without success. I want to hide .entry-thumb ONLY this type of post, but when I apply CSS, hidden in all sorts of posts.

    My theme uses the entry-thumb (or something) to show a gallery in this type of post, for example, and when I use the display:none, the gallery is also not displayed!

    Is there some sort of conditional to apply CSS only in a post format?

    I’ve tried to create a content-standard, but did not work as well as a single-standard. I looked for class=”entry-thumb” in the theme, but don’t exist! I assumed to be a specific class of wordpress.

    Any suggestions or solutions? Pleeeeease?

Viewing 5 replies - 1 through 5 (of 5 total)
  • does your theme use post_class() for the elements in the loop?

    what theme are you using?

    https://codex.ww.wp.xz.cn/Forum_Welcome#Include_as_Much_Information_as_Possible

    Thread Starter FP And

    (@fp-and)

    Hi, Michael!!

    Yes, my theme use post_class(), and I use Scopic Theme, it isn’t for the wp repository. I was all modifications what I want, but one think so simple is drive me crazy.

    Have this <?php ht_post_format_standard(); ?> in the loop, but I don’t know if I can use this and how.

    I need hide the entry-thumb just in the standard because almost all other post types use this with certain features.

    Thanks for your help! (And sorry for the bad english :))

    unfortunately, you will need to contact your theme’s developer for help with your question.

    as a commercial theme, your theme is not supported here in the forum;
    https://codex.ww.wp.xz.cn/Forum_Welcome#Commercial_Products

    PS:

    the default WordPress function post_class() would output the CSS class .format-standard for a post of the ‘standard’ postformat;

    you can then base your hiding of the featured image on that CSS class.

    no idea, obviously, what the function of your theme outputs…

    Thread Starter FP And

    (@fp-and)

    Hi, Michael!!

    Thank you very much for your help! I read the codex, but it was a bit confusing to me. Now I understood and I can do what I wanted.

    I know what they say about commercial themes in this forum, so it was the last place I tried, but is a basic question!

    Just one thing: a single-standard file not should work?

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

The topic ‘CSS just for standard format’ is closed to new replies.