• weekendawayjak

    (@weekendawayjak)


    Hi All,

    Quick question – I want to add a subtitle underneath the main post title on the front page. Basically instead of the date I want a subtitle on the different squares for each of the posts.

    Anyone know how?

    Huge thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Kathryn Presner

    (@zoonini)

    weekendawayjak – normally the route I’d suggest is adding a custom field, and then outputting that custom field in a child theme. But since Cubic is already a child theme of Boardwalk, that’s not possible here.

    You could try some custom CSS, but you’ve have to set it individually for each post. For example, this would hide the date on all posts on the blog:

    .blog .posted-on {
         display: none;
    }

    Then this would add a subtitle below the post title:

    .blog .post-104 .entry-title::after {
         content: "Blah";
    }

    You’d have to add a new line targeting each post with a subtitle.

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    There are also standalone custom CSS plugins.

    HI I know I am following up on an old post but how would I change this code if I only wanted the text to show on hover?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add subtitle to squares on homepage’ is closed to new replies.