Jump to content

Responsive Mobile Homepage (header.tpl)


rockhost

Recommended Posts

Hey Gang,

 

So, I've got my WHMCS installation looking pretty slick (if I don't say so myself). :-P That is, on my laptop. The mobile design leaves a little to be desired.

 

While, I love that the fact that full website (slider template) has both the "search" and "transfer" functions, viewing on my iPhone squishes the form so much that typing is difficult.

 

How can I remove the "transfer" button for mobile visitors only?

 

Thanks in advance!

Link to comment
Share on other sites

Thought I would follow up on this just in case anybody else was reading along now or in the future. Here's the fix. I added four lines of code to custom.css:

 

@media (max-width:320px) {

.transfers {

display:none;

}

}

 

Then I edited line 152 of header.tpl in my custom template which is built from "slider."

 

<input type="submit" name="transfer" class="btn btn-info transfers" value="Transfer" />

 

As you can see I snuck that extra "transfers" class into the input. Works great, even changes with landscape view on my iPhone 5.

 

Happy hosting!

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