Skip to main content
  • X Twitter
  • youtube
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?

How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?

HowTos
May 31, 2013
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
10

If you use the Gallery Formatter module based on the Imagefield within the Marinelli theme, the arrows of the gallery don't appear as they should (see step 1). This is apparently a CSS problem caused by conflict between the theme related CSS and the module related CSS. This howto shows you how to quickly solve the problem.

Solution
How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?

Step 1: Identifiy the Problem = CSS conflict between theme and module

The arrows of the gallery are not at the right position and they have a blue and thick border.

Conflicting code

Step 2: Locate the conflict

Usually it is the easiest way to use the inspect element function of the browser to identify such problems (see Use "Inspect Element" to Troubleshoot potential Design/CSS problems). If you do so you will find out that both of the problems are caused by a code in the comments.css (sites/all/themes/marinelli/css). The problematic code related to the positioning can be found in the section Structure (line 32-38), the code related to the border in the section Look & Feel (line 85-88). These codes are applied to the Gallery Formatter arrow, because the same variable "arrow" is used.

Change Variable

Step 3: Solution > Change name of variable in Gallery Formatter module

The most proper solution is to change the name of the variable in the Gallery Formatter module (for Example from arrow to arrow2). Thus you can avoid that the code from the comments.css is applied to the arrows in the gallery. To do so you have to edit the following files:

  • greenarrows.css -> sites/all/modules/galleryformatter/gallerystyles/greenarrows
  • galleryformatter.css -> sites/all/modules/galleryformatter/theme
  • infiniteCarousel.js -> sites/all/modules/galleryformatter/theme

Open the files and search for "arrow" and change it to "arrow2". There are 5 instances to change (see also picture):

  • greenarrows.css -> line 7 and 69
  • galleryformatter.css -> line 56
  • infiniteCarousel.js -> line 66, two instances
Arrows okay

Step 4: Verify result

After you applied solution 1 or 2 you can reload the page. If everything went fine, the arrows are okay now.

Drupal Marinelli Theme
Css

Read more articles

Newer
How to disable a particular part in the source code of CSS?
Older
How to choose, download and install additional themes?
  • Log in to post comments
Profile picture for user drupal
drupal
10
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Us

Get in touch for questions and our Drupal development, design and optimization services.

Contact Us

We aim to reply the latest within 48h.

Drupal 4U: Built for AI. Powered by Drupal.

We are a group of Drupal designers, developers and webmasters. We are Drupal experts! We provide comprehensive services that go beyond traditional web development, focusing on how AI understands, interprets, and cites your content. With our deep expertise in Drupal's architecture, we build the intelligent core of your digital presence, ensuring your brand remains authoritative and visible in a world where AI is the primary gatekeeper of information. Partner with us and let's future-proof your digital strategy together.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal GEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • Gaivas Themes Drupal 11
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • About
  • Contact
Clear keys input element