CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Editing Css for individual pages
Pages: [1]

Author Topic: Editing Css for individual pages  (Read 1530 times)

tekoun23

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.10
  • MySQL version: 5.0.77
  • PHP version: 5.2.14
Editing Css for individual pages
March 13, 2012, 01:52:01 am
Hello,

I am wondering where the code is stored for the css or style of individual pages or sections of CiviCRM.
For example, I would like to change the banner of the Advanced Search page/change the title but I cannot find it in the .tpl or .php forms.
What is the pathway to access this css?? I have looked all over and can't find the form(s) I am looking for.

Thanks for your help!!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Editing Css for individual pages
March 13, 2012, 03:40:51 am
Hi,

They aren't a lot of style per page, that's mostly global.

If you want something for one template use the .extra.tpl trick to add custom template code and add a <style> block in it that contains what you want
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Editing Css for individual pages
March 13, 2012, 07:39:57 am
As xavier said, there is not CSS unique to any particular page. If you want to override any CSS rule that comes with CiviCRM, you can do so easily by making a more specific CSS selector in your Drupal theme.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tekoun23

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7.10
  • MySQL version: 5.0.77
  • PHP version: 5.2.14
Re: Editing Css for individual pages
March 14, 2012, 10:09:38 pm
Thanks for your suggestions!

How do you make an extra .tpl to replace what is already there?
I have changed the directory path but it is still not matching up/showing up on the actual page



Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Editing Css for individual pages
March 15, 2012, 04:10:04 am
Quote from: tekoun23 on March 14, 2012, 10:09:38 pm
How do you make an extra .tpl to replace what is already there?

http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Editing Css for individual pages

This forum was archived on 2017-11-26.