rockhost Posted August 20, 2015 Share Posted August 20, 2015 Hey Gang, So, I've got my WHMCS installation looking pretty slick (if I don't say so myself). 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! 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted August 21, 2015 Share Posted August 21, 2015 You would need to use a media query in CSS to effectively say "If the device width is X width or less, don't display the class". For example: @media (max-width:320px) { .class-of-the-element { display:none; } } 0 Quote Link to comment Share on other sites More sharing options...
rockhost Posted August 22, 2015 Author Share Posted August 22, 2015 Is 320px the standard for mobile devices? Place the code in custom.css, I suppose? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
rockhost Posted August 25, 2015 Author Share Posted August 25, 2015 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! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.