Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • 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
9

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
9
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

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

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

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

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

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

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element