0

On Drupal 8 site using the default Bartik theme, I have setup the article content type to be displayed in horizontal tabs based on the "field group" module.

On normal/large screens, the article display page is rendered in horizontal tabs style (Good!):

Horizontal tabs display

However, in small screens, the article display page is rendered in accordion style (Not good!):

Accordion display

I have found an answer here Horizontal Tabs rendered as rendering collapsible fields which is for Drupal 7 and I didn't know how to convert it to work for Drupal 8.

Does anyone have an ideas how to keep the article display rendered as horizontal tabs for whatever screen sizes?

  • This should be reported on drupal.org, not here. – leymannx Feb 11 '19 at 6:52
3

Perhaps try out the patch to make this setting configurable as proposed for field_group module in this issue

Users have reported that it applies cleanly and allows for the setting to trigger based on a custom breakpoint.

Testing it out and reporting success/failure on that issue gives a better chance for this feature to be incrorporated into the module itself.

NOTE: the patch probably needs to be applied to the dev version of the field_group module

  • Thank you @GiorgosK for the link provided, but the patch does not apply for the Drupal 8.6.9 – Elie Masaad Feb 11 '19 at 21:49
  • 1
    You must apply the patch to the dev verison of the module and not on the beta-1 version – Charbel El Azzi Feb 11 '19 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.