Jump to content

How to use different background image in header for all different pages header


Recommended Posts

20 hours ago, Corp Jack said:

I want to use different background image in header for all different pages header.

exactly how might depend on your site. 😎

if you were using Six, it would be a header action hook that changes the background image using CSS based on the current page.... but you're using a custom template, Antler, and so I don't know if that would work as is with your template.

for example, a custom background in Six would look like...

4SeH9r4.png

whereas on your site, it would look like...

DrpTqET.png

that off-white navbar, is not part of the header and because your font colour is white, it's hardly visible - don't know if that's intentional or an issue.

as your header is slightly different from Six, it might be worth contacting Antler support to see if there is anything specific you need to do in the theme to do this - possibly they've been asked before and will have a ready answer for you.

Link to comment
Share on other sites

Hello Brian,

I am glad to see reply.

Good news, We make some changes in header.tpl file and css and it works fine. You can check as we required its working on below link:

https://www.corpjack.com/

 

I suggest to all visitors if they required same changes. Header with different Background image on different page, use below code:

{if $name eq 'Fred'}
    Welcome Sir.
{elseif $name eq 'Wilma'}
    Welcome Ma'am.
{else}
    Welcome, whatever you are.
{/if}

I try to describe in details

Link to comment
Share on other sites

21 hours ago, Corp Jack said:

Good news, We make some changes in header.tpl file and css and it works fine.

glad to hear you solved it - nothing wrong with doing it in the template like that, just remember to keep a copy of the code somewhere because when you update WHMCS, or more specifically your theme, you might lose the custom coding.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated