test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • spider2009 Friend
    #145646

    Hello.

    Is there a way to make the article title to be displayed using cufon style?

    The article titles have the following CSS formatting:
    <h2 class="contentheading clearfix">My article</h2>

    Thank you.

    spider2009 Friend
    #322352

    There’s the following javascript inclusion:

    <script type="text/javascript">
    Cufon.replace(
    '.ja-slide-desc .title, h1.componentheading, .blog .componentheading, .blog .contentheading, div.moduletable h3, div.moduletable_default h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_hilite h3',
    { fontFamily: 'Bebas' }
    );

    Cufon.replace(
    '.jav-search span.jav-search-title, .jav-search .button, .jav-has-votes h4',
    { fontFamily: 'Bebas' }
    );

    Cufon.replace(
    '.ja-slide-desc h3',
    { fontFamily: 'Bebas', color: '#fff' }
    );

    Cufon.replace (
    '.logo-text h1',
    { fontFamily: 'Bebas', color: '-linear-gradient(#fff, #bbb, #fff)', textShadow: '#ccc 1px 1px' }
    );
    </script>

    I could not find the source of this javascript. Then, I could add:

    <h2 class="contentheading clearfix">
    to have “Cufon.replace”

    Any idea?

    Thanks!

    hellerd Friend
    #322595

    Hello,
    If you find a solution, can you tell me it please ?
    Thank you !!!

    spider2009 Friend
    #322600

    Surprised that no one else experiencing this problem, or may be others do not consider this as a problem.

    It looks “funny,” to say the least, how the article title switches from “cufon” on one page, to regular text, once the article is expanded via the “Read more” link.

    Still searching for the solution…

    thatch10 Friend
    #322701

    Navigate to your template folder / ja_halite /layouts/ and open the head.php file.

    This is where the cufon font replacement techique is applied to your styles,

    I am using the first part. Mine starts at line 46

    Cufon.replace(
    '.ja-slide-desc .title, h1.componentheading, h2.contentheading, p.domainextension, .blog .componentheading, div.componentheading, .blog .contentheading, div.moduletable h3, div.moduletable_default h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_hilite h3',
    { fontFamily: 'Bebas' }
    );

    and adding my style, in the case that you have requested it would be

    ‘h2.contentheading’

    Scotty’s great post helped me out no end and its here

    I suggest you read his thread before making the change, I have just pointed you to the correct file, its easy after that.

    Thatch

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  thatch10 15 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum