Keyword

Two Color Titles

  • Bryan Smith
  • Bryan Smith's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 4 months ago #96622 by Bryan Smith
Two Color Titles was created by Bryan Smith
Does anyone know if it is possible to have two color K2 titles, like here in this template.  There are two color joomla titles, but I can't figure out how or if it is possible to do this in K2.

 

demo.rockettheme.com/free/grunge/

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96623 by BBC
Replied by BBC on topic Two Color Titles
It is just text, not Title or URL.
Maybe with some extra field and showing just name of field. (value empty).

But don´t know how to style 2 fields separately.

If it is not much work for you make a habbit to have this done in Intro text with editor.
Same font size, same colors allways.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96624 by BBC
Replied by BBC on topic Two Color Titles
Put this in your template CSS:

 


.article-title2 {
    color: #333333;
    font-size: 110%;
    letter-spacing: 1px;
    line-height: 16px;
    text-transform: uppercase;


}


.article-title1 {
    color: #558C92;
    font-size: 180%;


}



.article-title1, .article-title2 {
    display: block;
    font-family: georgia,garamond,serif;
    font-weight: bold;
    line-height: 110%;
    margin-bottom: 10px;


}


 

Then clean cache in Joomla and browser cache. And you will get new two styles in your editor dropdown menu "Styles".

Write text in Intro, mark all text then chose one of the new styles.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96625 by Josh
Replied by Josh on topic Two Color Titles
Suppose we would want to somehow wrap the first word of each title with <span> or similar.

Just not sure how to do this either, it would be a cool trick though.

Please Log in or Create an account to join the conversation.

  • Bryan Smith
  • Bryan Smith's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 4 months ago #96626 by Bryan Smith
Replied by Bryan Smith on topic Two Color Titles
I believe it is being done with some javascript and it is already part of the template.  I'm hoping to migrate it to k2

gantry-buildspans.js, which used to be RokBuildSpans.js

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96627 by Josh
Replied by Josh on topic Two Color Titles
i would be keen to find out more if you do.

- follow topic - check

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum