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.
Node gallery has code provided - Views code to display gallery list page in table or grid format. Works great but I need to change the background color and borders for the table. Can someone advise on how to do so?
Maci
Comment | File | Size | Author |
---|---|---|---|
#4 | Edit view_theme.png | 117.59 KB | dbeall |
#3 | snapshot.jpg | 89.72 KB | macmaci |
Comments
Comment #1
dbeall CreditAttribution: dbeall commentedchange version to current, change priority to normal, but should be minor.
Goto the 'view', click the edit button to the right of the view
click the 'default' and/or 'page' view at the top left.
Then click on 'theme' 'information' to see the available tpl file you can use.
The files are located in sites/all/modules/views/theme
quote from merlin of chaos, the views developer
Please note that the biggest issue here is that the official views 2 documentation is part of the advanced help that ships with Views.
http://groups.drupal.org/node/4161#comment-69136
Views 2 theming
http://drupal.org/node/352970
Comment #2
dbeall CreditAttribution: dbeall commentedyou can try using firebug in firefox and doing adjustment to the themes css.
I would have to view the page and use those tools to see what you have since there are hundreds of different Drupal themes.
Comment #3
macmaci CreditAttribution: macmaci commentedthanks for your instructions but they don't seem to solver the problem unless it is over my head. Perhaps the snapshot I've attached will help. It shows the table format I've selected in views to use for my gallery page view which list all of my galleries. I need to be able to format the table so that the background matches my site as well as the borders. I would also like to align the type differently. Can't seem to find the CSS file if that is in fact where I should change it. Would appreciate any guidance you can provide.
Thanks,
Maci
Comment #4
dbeall CreditAttribution: dbeall commentedIf you post your site URL, I will look at it in firebug to find the classes for css where you over ride the color.
Actually, themeing in views isn't anything to do with node_gallery because that is done through the tpl.php files associated with views.
I have only done a small amount of themeing in views and don't know that much about it.
Save the file attachment to see what I am talking about in views themeing. The image is quite tall, zoom in on it to see more.
Comment #5
macmaci CreditAttribution: macmaci commentedI downloaded Firebug as you suggested and was able to finally locate where to edit the CSS. I like to challenge myself and your help was invaluable. Just one last thing. There is a top border on the table that comes from the "system.css". Should I edit the system.css or is there a way around this to prevent my border from reverting when I update Drupal?
Thanks much,
Maci
Comment #6
dbeall CreditAttribution: dbeall commentedFirebug is a really neat tool !
no need to edit any core files, find the css classes you need to fix.
add them to your themes css file at the bottom and Drupal will look there first
Keep your modifications safe from upgrades...
Your modified files should all be sites/all/themes/my-theme
If you use a core theme, copy the whole folder and paste it into sites/all/themes
Comment #7
macmaci CreditAttribution: macmaci commentedGreat. Thanks a lot.
-M
Comment #8
dddave CreditAttribution: dddave commentedComment #9
macmaci CreditAttribution: macmaci commented