Site logo

[Resolved] Announcement Boxes for Home Page

Home Forums Support [Resolved] Announcement Boxes for Home Page

Home Forums Support Announcement Boxes for Home Page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2600078
    Mel

    Hi,

    I am using the MyPet Template.

    My client wants small “event announcement” content boxes on the Home Page that show up only if she has an upcoming event. Sometimes there could be 3 (or possibly more?) events, sometimes none. They would have heading, text (not sure yet how much, probably only small description), and possibly an image (again, not sure yet).

    What is the best way to set this up so it is easy for the client to, later on, manage and edit this section by herself? She would be editing the whole site content in the future, I have to train her for this.

    Thanks
    Mel

    #2600179
    Leo
    Staff
    Customer Support

    Hi there,

    What is the best way to set this up so it is easy for the client to, later on, manage and edit this section by herself?

    Hmm this question is a bit vague for us to answer as it completely depends on you as the developer and your client.

    It’s also not a theme-related question.

    Maybe try a couple of options that you have in mind and discuss with your client to see which method works best for him/her?

    #2600202
    Mel

    I was thinking of creating a custom post type for this, would that work? Do I need a plugin for this and do I need to create a child theme and work in the core files?

    #2600209
    Mel

    Hi again,

    A colleague suggested the following:

    Re: the dynamic
    Content on the front page you can use posts or a CPT for updates, and then use a query loop to show the 3 latest featured items or the 3 latest items of category or tagged front-page for example. The client will then need to update or change the tag or category to show or hide the items.

    Is this a good idea for my requirements? How would I do this?

    #2600264
    Leo
    Staff
    Customer Support

    Is this a good idea for my requirements?

    I believe so but this is something you will need to try and determine if it’s good for you and your client’s need.

    How would I do this?

    Sorry – do what specifically? Setting up the CPT?
    If so you can Google “setting up CPT WordPress” to see lots of related info.

    And here are the articles related to the Query loop block: https://docs.generateblocks.com/collection/query-loop/

    The rest of the steps are already specified by in your colleague’s reply.

    We can only help with GP related questions here:
    https://generatepress.com/what-support-includes/

    You will need to configure the site structure as you see fit.

    #2600275
    Mel

    Ok thanks for the info

    #2600347
    Leo
    Staff
    Customer Support

    No problem 🙂

    #2600357
    Mel

    Hi, I managed to create a Custom Post Type using the Custom Post Type UI plugin. I would like to edit the standard template for archives and single posts. I read I need to add a custom template for my custom post type to my WordPress theme.

    I need to download the archive.php file to my computer.

    Once downloaded, I need to rename the file to archive-{posttype}.php where {posttype} is the name of my custom post type.

    Then edit the file and upload it again.

    So since I am using the GP MyPet template, I would like to know, do I need to create a child theme for this and do the changes there?

    Thanks
    Mel

    #2601377
    Leo
    Staff
    Customer Support

    Please take a look at this article first and open a new topic if you have more questions:
    https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/

    Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.