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.
Hello there. This might be a little stupid, but I have read each and every issue and tried everything I could in order to get rid of the javascript hack that changes the color and font size. What would be the right way to do it ? It's not that I don't find it useful, on the contrary, but I doubt that my website visitors find it useful as well :)
Thanks a lot and best regards.
Comments
Comment #1
derjochenmeyer CreditAttribution: derjochenmeyer commentedremove the following in the page.tpl.php
Comment #2
drupalferret CreditAttribution: drupalferret commentedI changed mine so the font size picker stayed but the color picker was switched off. I did this by splitting the adminwidget function into two functions inside template.php then calling the one I wanted from page.tpl.php
Here is how to do it:
Open template.php and replace the code for adminwidget with this code instead:
function fourseasons_adminwidget() {
Now open page.tpl.php and change the code so both pickers are shown:
Now you can delete whichever one you do not want or delete both of them.
Comment #3
Vially CreditAttribution: Vially commentedVery nice, that's much better than not having it at all. Thanks a lot :)
Comment #4
drupalferret CreditAttribution: drupalferret commentedHere is another trick to make the top toolbar a bit nicer.
in page.tpl.php find the following code:
Now wrap a style around them:
Now open style.css and add the hdrtools style to the stylesheet:
Design a nice background image to site behind your top color and text picker tools and upload it to your fourseasons img folder
This should give you a nice background behind your tools.
Comment #5
SamRajarata CreditAttribution: SamRajarata commentedHi, is there anybody to can say how to toggle the image also?
like
<a href="#" style="background-color:#000000;" onclick="toggle_style(\'#000000\');"></a>
how can we pass the image to javascript to chane the header image on every click on "farben" div.
thanx
Comment #6
c-c-m CreditAttribution: c-c-m commentedCould it be possible to select a color and/or size from the admin widget and make it persistent for a specific user? (that means that whenever a page is reloaded colors won't be reseted like now)
Comment #7
konse CreditAttribution: konse commentedDid you find a solution for this c-c-m?
Comment #8
c-c-m CreditAttribution: c-c-m commentedUnfortunately, not, Konse.