Closed (fixed)
Project:
Drupal core
Version:
7.8
Component:
Bartik theme
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2011 at 07:34 UTC
Updated:
6 Sep 2011 at 16:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
pixelsweatshop commentedYou need to download and use Firebug http://getfirebug.com/ to identify the element and associated css file. You can also use http://drupal.org/project/imagecache_profiles to set user profile pictures that are consistent throughout your site and allows avatars on the user profile pages, nodes and comments to be a different size.
Comment #2
paul_constantine commentedThank you. I've been using firebug for over a year now. And I tried "LIVE CSS" and "SWEAVER" both D7 modules.
But I have not been able to identify the file that contain the css settings for these problems. I strongly suspect that I need to change core files to do any changes here and I am very reluctant to do that.
None of the css files in the bartik theme contain any entries that allow me to solve my two problems.
:-(
Comment #3
pixelsweatshop commentedI should have mentioned that best practices would dictate that you create a subtheme so that when you update drupal, it does not override your hacks to the bartik theme. See http://drupal.org/node/225125
This will also mean that your custom css file will load last, overriding anything you would like to in Bartik
Comment #4
paul_constantine commentedThank you for the advice. I found this howto and it worked fine for the subtheme part:
1. Copy the bartik theme from \themes.
2. Paste it into \sites\all\themes.
3. Rename the folder to mytheme (obviously replace mytheme with whatever name you like).
4. Open the folder and rename bartik.info to mytheme.info.
5. Delete the template.php file (or empty its contents).
6. Open mytheme.info and add the line "base theme = bartik" under the line core = 7.x.
7. Find the line stylesheets[all][] = css/style.css and rename style.css to mytheme.css.
8. Navigate to mytheme/css and rename the style.css file to mytheme.css.
That still does not tell me where to change the settings for the width of the "user-picture-upload" field.
Anyway, at least I got the sub-theme part working now :-)
Edit: I just noticed that the button says "Durchsuchen" which is kind of strange because I did not install any German language packs. Does this mean that the theme uses part of my OS and browser? And it it does, is there a way to override these settings in the .css files?
Comment #5
pixelsweatshop commentedYou will now have to use http://drupal.org/project/imagecache_profiles to set user profile pictures that are consistent throughout your site and allows avatars on the user profile pages, nodes and comments to be a different size.
Comment #6
paul_constantine commentedDear Nicoz,
maybe I did not express myself clearly. I do not have any problem with the size of my user pictures. My main problem is the width of the "user picture upload field" on the "edit my account" page.
I can not find - even with firebug - the lines in the style.css where I can reduce the width of the upload input field. Right now the field is too wide and breaks my layout (see attached screenshot).
Is it possible that the style.css does not have any entries for that field?
Regards,
Paul
Comment #7
pixelsweatshop commentedIt is entirely possible that there is nothing set in the css to control it. You will have to add it. Find the div/class using firebug and add it along with
input {width:80%;}(or even a hard px width.)Comment #8
paul_constantine commentedThank you NIcoz,
found the following code that changes the width of the upload field by changing the size from "48" to a lower or higher value:
<input id="edit-picture-upload" class="form-file" type="file" size="48" name="files[picture_upload]">Tried to change the width by putting the following code into the style.css:
It did not work with size or with width in % or px. What am I doing wrong.
Best wishes and thank you for your patience,
Paul
Comment #9
pixelsweatshop commentedAs mentioned in my above post, you need to add "input" to your css
#edit-picture-upload input{width:200px;}p.s. This issue is more appropriate in Drupal's forums rather than the core issue queue. If this issue persists, please feel free to post a new thread there.