Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
Danland has been my first choice theme for all my Drupal projects right from when i ventured into dynamic website designing about two years ago.
I have however failed to figure out how to make the theme mobile responsive and this is affecting the the demand for the work i do.
Could someone help on how to go about including mobile responsiveness to this theme?
Comments
Comment #1
crisigune CreditAttribution: crisigune commentedComment #2
ronliskey CreditAttribution: ronliskey commentedDitto. Just starting to look into this myself...
Comment #3
jenlamptonThe best approach would probably be to add an additional style sheet with media queries that resizes the columns based on device width. Danland is a beautiful theme, and making the layout responsive is probably not going to be a lot of work on top what's already done.
That said, there's no guarantee that whatever content is placed into this beautiful, newly responsive layout will also be responsive. Each site owner may need to add their own customizations to handle the changes in resizing/floating of images, and the like.
I still think adding a single additional style sheet will give everyone a leg up on making the site responsive, and if the maintainer isn't interested in supporting that functionality out-of-the box, we could add a single checkbox that would allow the style sheet to be included / excluded per site.
Comment #4
Leeteq CreditAttribution: Leeteq commentedIn order to get enough traction for such a relatively big change, I guess it should be aligned with whatever becomes the strategy for the D8 version.
I have added a comment to the D8 release discussion here:
Comment #5
draokon CreditAttribution: draokon commentedHi, I modified my template Danland to be responsive
I made the following changes:
1- In page.tpl.php and page-front.tpl.php
I added the following meta code after the tag
This is to tell the mobile devices that do not modify the content and use their actual width.
2- In the stylesheet local.css I added at the end the necessary code to display responsive content according to the window width:
The css code is adapted to my needs, but you can play with the values to fit yours.
Comment #6
Leeteq CreditAttribution: Leeteq commentedComment #7
ale.stendardo CreditAttribution: ale.stendardo commentedDraokon, thank you very much for sharing this. It works perfectly!
Comment #8
DarrellDuane CreditAttribution: DarrellDuane commentedCan we make a checkbox inside of the configuration options for Danland to enable this fix so that people can choose to make Danland responsive as other themes have done?
Comment #9
jcnventura CreditAttribution: jcnventura as a volunteer commentedComment removed, as it was based on a misunderstanding.
Comment #11
jcnventura CreditAttribution: jcnventura as a volunteer commentedThanks draokon. I've now merged your suggestions. Please do it as a patch next time.
I think this is just the first step in this issue. Once that is done, I'd release danland 7.x-1.1.
Comment #12
Leeteq CreditAttribution: Leeteq commentedGreat to see progress in this.
There is a lot of issues related to mobile friendliness and superfish compatibility (many of them just jQuery version problems unrelated to Danland, I have tidied a bit in the queue today.).
Ref. my suggestions in #2377827: Drupal 8 Version Planned?
What about making the next version (7.x-2.x) of Danland work with AdaptiveTheme base theme, so we can get a lot of these features "for free"?
Comment #13
Leeteq CreditAttribution: Leeteq commentedComment #14
jcnventura CreditAttribution: jcnventura as a volunteer commented@Leeteq: the way that Drupal works (no module dependencies), I'd rather not require a base theme.. The update system might update the theme (not sure if that works with themes), but because there's no dependency checks, the sites would simply WSOD..
Sorry.
Comment #15
jcnventura CreditAttribution: jcnventura as a volunteer commentedOh, and thanks a lot for the issue cleanup.. It really helps.
Comment #17
danpros CreditAttribution: danpros commentedPlease test the 8.x branch. It already responsive and mobile first for sidebars and main content.
Comment #18
groundstate CreditAttribution: groundstate commentedTried using the above patch to 7.x branch - it doesn't play well with my phone or tablet: makes a mess.
Tried using 8.x branch on a fresh install and it's quite good on mobile.
Pursuant to the title&version of this thread, any plans to backport the responsiveness to 7.x branch?
Comment #19
crisigune CreditAttribution: crisigune commentedComment #20
Leeteq CreditAttribution: Leeteq commentedIf I read this correctly, this went into the D8 version only, and is not backported yet, right?
Comment #21
dieng.fatma CreditAttribution: dieng.fatma commentedhow to make changes on version 8 as there is no template.php
Comment #22
dieng.fatma CreditAttribution: dieng.fatma commentedBonjour je suis debutante sur drupal j'utilise la version8. Actuellement je veux rendre le site responsive mais les reponses que je vois ici son destines aux versions enterieur du theme Danland. Merci de votre aide.
Comment #23
jadag88 CreditAttribution: jadag88 commentedI really like this Danland theme, and am using it to completely recreate an existing website on Drupal 7 (can't move to Drupal 8 because of compatibility issues with CiviCRM). I like the Preface first, middle, and last blocks, however images in those blocks show up on the desktop but do not show up on mobile. Everything else on the site looks beautiful on mobile (although it is only responsive, not actually adaptive), but only the text in the Preface blocks shows up on my iPhone, both in Safari and Chrome.
Comment #24
Andy_Capp CreditAttribution: Andy_Capp commentedI am new to the Drupal project and was trying to get images in the Danland theme mobile adaptive.
I am using Drupal 9 and Danland 8 as standard theme and discovered that this issue was addressed previously.
Content seems to be fully adaptive but not the images (slideshow or any other embedded images).