- Responsive design - need to hide certain page elements on mobile devices
- Responsive design - need to hide certain page elements on mobile devices
-
Responsive design - need to hide certain page elements on mobile devices
Thanks for the reply Alan, a few good ideas there. Good point about the social id, I'll change this to class. I think I should also change the content-info div that contains the social div too, as this is duplicated in both the header and footer? I think what I need to do is change all the #content-info to .content-info, and #social to .social... then in header.php change div id="content-info" to div class and ul id="social" to ul class... but... in the footer, <footer id="content-info" role="contentinfo">. Would the correct method for here be to use <footer class=""> ? I've not used the new style footer tag before and slightly confused about the correct syntax, or if I'm doing all of this the right/easiest way or not? The reason I'm not keen on the social icons if that they seem to distract the eye from the slider when viewed on my iphone 4s (client definitely wants the slider ). Also there are space issues when viewing in landscape mode and the last icon is pushed down onto the next line. So... in the media queries I added the code as follows (the top line was already there of course): @media screen and (min-width: 480px) { .top-menu #social { display: none; } Not sure what I've done wrong but this hasn't changed anything? Also, the phone number isn't in its proper place yet, I'm still working out its placement Hope that all makes some sense at least, and thanks for any help
- Logotype opinions
-
Responsive design - need to hide certain page elements on mobile devices
Hi, I'm new here and quite new to web design too. This is my first question so I'll post the basic problem I need some advice with and explain things generally before I start posting loads of code. I'm building a website using Wordpress, and using the template Egofolio and need to make some small modifications to this. I've got the page looking half decent when viewed on my MacBook, but not when viewed on a mobile device. I've built a few basic websites before but nothing responsive. I have looked into the basics and understand what I need to do but not how to do it. On to the problem... Website preview: http://www.electrobankmedia.co.uk/?theme=Egofolio&passkey=552866725253e6e89327c As you will see, the header section doesn't look too bad on a decent sized screen. But on a mobile device it looks awful in both landscape and portrait views. I've added the social icons from the footer (as the client wants them in the header) and this has interfered with the layout. I understand there's not really enough space for the social icons in the header on a mobile device because the front page slider needs to be fully visible, so I want to create some code that will hide the icons when the site is viewed on a mobile device. I'm guessing I could hide the class "social-icons" but I'm assuming that would hide the icons in the footer too and I don't want to do that. Is there a simple method to do this? I have looked into this and found advice and bits of code online and tried a few things unsuccessfully, but don't understand the exact correct method, where to put the code, etc. If anyone could offer some advice that would be amazing. I'll happily post any code from the header.php, footer.php, layout.css files, or any other bits of code if it helps. Thanks in advance! marktea PS. If you're previewing the site, the link will take you to the blog page. Click on "about", wait for the ajaxed page to load then click back on "home" to see the slideshow. I'm working on the new template using Theme Switch on the back of a live site, so the pages are currently set up for the live site (if I change the home page settings to display the new template correctly it affects both templates).
-
-
Hello there!
Ahoy Privileged! Nice to meet you too.
-
-
-
Hello there!
Thanks Teodora The avatar is (almost) a visual representation of my screen name, which also happens to be my DJ name. It's tattooed on my arm too!
-
Hello there!
Hi everyone. Looks like I've landed in a nice place here, how's it going? I'm new to the forums and relatively new to web design. Graphic designer by trade, but I'm getting slowly steered into web design/Wordpress development almost by accident. Hopefully I'll be able to improve my skills in HTML and CSS, and have some knowledge to give back too. Cheers for reading! marktea