Home Forums Pro Themes Careerpress Pro image background title post page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134093
    jean-marc strauven
    Participant

    Hello,
    We have made “pages” directly in the menu link to a post category (https://test.greendevils.be/fr_FR/category/club-news/)
    we try to add a background image after the title “Category: Club News” like the feature image in a page configuration but with the type of “page” I don’t any configuration to add a picture in the background (different for each category of post)….where can I change this ?

    Do you have a solution to remove the “category:” in the title of this page too ?

    Many ?

    JMS

    #134112
    wensolutions
    Keymaster

    Hello,

    Regarding your query, you can add Header Image by going to Admin Panel > Appearance > Customize > Header Image which will appear in the header in all the pages.

    https://prnt.sc/ui2lge

    Hope this helps.

    If you have further queries, let us know.

    Regards.

    #134131
    jean-marc strauven
    Participant

    Great for the picture…is working.
    do you have a solution to remove the word “category” in the title of the page ?
    https://test.greendevils.be/fr_FR/category/club-news/ I will have “Club News” like title not “Category: Club News”

    Many Thanks

    #134186
    wensolutions
    Keymaster

    Hello,

    Regarding your query, you can add below the given code in the child theme’s function.php file.

    add_filter('get_the_archive_title', function ($title) {
      return preg_replace('/^\w+: /', '', $title);
    });

    So, you should not make any modification directly in your parent theme as all of the customizations will be lost upon update to the latest version of the theme and the same situation is here when you reinstall the theme.

    So please go through the child theme for the changes and shift all your customizations in the child theme before you uninstall the theme. You can refer to the below-given documentation link to get detailed assistance on how to create a child theme.

    https://wptravel.io/how-to-create-a-child-theme/

    Hope this helps.

    If you have further queries, let us know.

    Regards.

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