New Landing How can we help? Themeforest Theme Support Flexform Category custom header image

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Flexform
  • #18630
    michelleoswell
    Member
    Post count: 14

    Is there any way to set a custom header image for a specific category? Your theme doesn’t work with the best solution I was able to find among plugins (the Unique Headers plugin). Thanks.

    #18691
    Tekguild
    Member
    Post count: 171

    Can you be more specific about which Category you’re referring to – Blog, Portfolio, Team, etc?

    My first thought – create a page with the Swift Page Builder element (Blog, Team, etc) as it’s content and use the custom header image option for the page…

    #18694
    michelleoswell
    Member
    Post count: 14

    Sure, the category is a custom category called “Notes from the Archive.” But since this is a blog post category that has an auto-page created for the category, how would I make it so the breadcrumb links to the custom page rather than the auto-created page for the category (http://library.curtis.edu/category/notes-from-the-archives/)?

    #18696
    Tekguild
    Member
    Post count: 171

    This would take a bit of coding to do – there are a couple ways to go about it:

    1. Creating a variable in the category.php file that will insert a header image based on the category ID (probably the easiest option).
    2. Duplicating the category.php file and renaming it to something appropriate (category-notes.php, for example), editing the code to insert the image where you want it, then calling that php file based on the category ID within the loop.
    3. I won’t get into this one, as it’s more difficult than 1 or 2 – I’m just letting you know there’s a 3rd option.

    I’m pretty sure that Swift team wouldn’t be able to give you specifics on how to do this – if you’re not comfortable with coding of this nature, your best bet would be to hire someone to do it for you…

    #18709
    michelleoswell
    Member
    Post count: 14

    The first option I might be able to figure out – I’ve got just enough knowledge of php to be dangerous. ๐Ÿ™‚

    #19043
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi Michelle!

    grokism is absolutely correct, if you want to change the layout you would need to work with conditionals. If it’s only about background images, font colors etc. we would be able to do it with custom css only.

    I could help you with the custom css, for the php coding you would indeed need to hire a developer.
    Let me know!

    #20550
    michelleoswell
    Member
    Post count: 14

    Hi Melanie,

    Sorry, I got sidetracked with renovations in my building! Simply saying that custom css could handle background images set me on the right track and I did a little more digging into the page’s css to find the right classes. Then it was simply a matter of setting the background image in the page header for the category’s class in the theme stylesheet. And since individual posts can have headers set within the post settings, I think I’m set with this.

    #20801
    Melanie – SUPPORT
    Member
    Post count: 11032

    Fantastic ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register