• Resolved wendypa

    (@wendypa)


    Hello

    With the Dara theme, the featured image in the demo is a post and shows the category as a label above the post title.

    I am only using pages on my site, but would still like to label the featured image. I downloaded a plug-in (Post Tags and Categories for Pages) and have added my category, but this did not automatically add the category to the featured image like I had hoped.

    Can I edit the theme to allow this?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, to add the code necessary to get the categories to show up, you would need to create a Child Theme and then copy over and edit the necessary file from the Dara theme to the Child Theme. I’ve looked at the files for Dara, and I think I might be overcomplicating this. Let me check with one of our developers Tuesday morning and I’ll post back here.

    • This reply was modified 7 years, 7 months ago by Kathryn Presner. Reason: fixed broken link
    Moderator Kathryn Presner

    (@zoonini)

    @wendypa Could you explain a bit more about your end goal here? I’m wondering if this plugin is really meant to do what you’re trying to achieve. Could you also provide a link to a page that you’re trying to modify? Thanks!

    Thread Starter wendypa

    (@wendypa)

    Hi, thank you both for replying.

    More info as requested:

    On the home page of my website, https://www.puzzlewalks.com.au, I am wanting to have a slider showing the featured images of some pages to showcase new puzzle walks. But having just the title of the page on the slider image doesn’t give enough information. I would really like another line there saying something like “new puzzle walk available now”.

    If these were posts, the category of the post would appear in a little blue box above the title (like in the Dara demo), which would fulfil that function for me. But with pages, there are no categories. So I used the plugin to add categories to pages, but that did not make the category appear on the featured images on the home page.

    I have tried using other slider plugins rather than the default Jetpack one that comes with the Dara theme, but I haven’t been able to find one that both positions the slider nicely and lets me customise the title or add a subtitle in the way that I am trying to do.

    I hope this helps, and thank you for your time.

    Moderator Kathryn Presner

    (@zoonini)

    @wendypa Thanks for explaining more clearly what you’re trying to do!

    If you want the same text above each slide’s title, you can do that with CSS alone – no plugin needed.

    Try adding this to your Customizer’s Additional CSS panel and see what you think:

    .home .featured-posts .entry-title::before {
      content: "new puzzle walk available now";
      display: block;
      font-size: 24px;
    }

    The look and feel can be tweaked further if you like as well.

    Let me know what you think.

    Thread Starter wendypa

    (@wendypa)

    Brilliant! Thank you very much, that has worked a treat.

    Moderator Kathryn Presner

    (@zoonini)

    Wonderful! Glad that did the trick.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Page category to homepage featured image’ is closed to new replies.