0
Welcome Guest! Login
0 items Join Now

SOLVED Two-tone color for Content Titles in CSS?

    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    SOLVED Two-tone color for Content Titles in CSS?

    Posted 17 years 6 months ago
    • I'm pretty sure the answer to this is no, but I'm not an expert so thought I'd ask.

      Is there anyway of producing two-tone text within the same line of a title, like this:

      THIS IS MY COMPONENT HEADER

      Either with some trickery in the CSS or by doing something with the background?

      Long shot I know!

      Dan
    • Last Edit: 17 years 6 months ago by .
    • Toolbox Digital | Dribbble | Forrst
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: SOLVED Two-tone color for Content Titles in CSS?

    Posted 17 years 6 months ago
    • Ok, I've manage to implement 2-colour titles using sIFR and the J! sIFR mambot, however sIFR needs a <span> in the text that needs to be changed, for example:

      THIS IS MY <span>COMPONENT HEADING</span>

      The bit within the <span> tags is a different colour.

      Now, this works for titles defined within a body of text, but I need it in the actual Component and Content titles on the page. When I try to insert <span> tags into titles in the J! content manager, you click "save" and the tags are automatically stripped out >:(

      Anyone know of a way around that? So close....etc

      Cheers
      Dan
    • Toolbox Digital | Dribbble | Forrst
  • Re: SOLVED Two-tone color for Content Titles in CSS?

    Posted 17 years 6 months ago
    • This is a long shot, I know, but...

      In my experience there have been times when I wanted to have an extra space, or several extra spaces for that matter. Usually, hitting the space bar and saving it doesnt work; the space simply gets omitted. However, if I use the (ascii?) to insert the space, which is:
      &nbsp;

      Then the space is saved and it works fine.

      You could try writing out the <span> tags all in that code. Maybe it would work.

      Phil Smith
    • -- ChurchWiz - Easy & Affordable Church Websites
      -- www.churchwiz.com
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: SOLVED Two-tone color for Content Titles in CSS?

    Posted 17 years 6 months ago
    • Well, the answer lies within joomla.php:
      function check() {
                // filter malicious code
                $ignoreList = array( 'introtext', 'fulltext' );
                $this->filter( $ignoreList );

      You simply add 'title' to the $ignoreList array, and any tags you insert into content titles will be ignored.

      Simple ::) ;)
    • Toolbox Digital | Dribbble | Forrst

Time to create page: 0.048 seconds