WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
[resolved] post_class in pages (4 posts)

  1. Jönson
    Member
    Posted 1 year ago #

    I've added two dropshadow classes to the "post_class".
    But the classes ar'nt implenting in pages. Only in articles.

    <article id="post-<?php the_ID(); ?>" <?php post_class('<strong>drop-shadow lifted</strong>'); ?>>

    Anyone knows how to do?

  2. Jönson
    Member
    Posted 1 year ago #

    content.php
    <article id="post-<?php the_ID(); ?>" <?php post_class('drop-shadow lifted'); ?>>

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    static pages use content-page.php

    btw:
    make sure to use a child theme for any customisations of the templates; http://codex.wordpress.org/Child_Themes

    do not edit the default theme Twenty Twelve directly.

  4. Jönson
    Member
    Posted 1 year ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.