WordPress.org

Support

Support » Plugins and Hacks » Cufon font script overwriting CSS

Cufon font script overwriting CSS

  • Hi I am trying to edit my fonts on the following page:

    http://184.172.183.32/~marcus/

    I have cufon script in the header.php and it is overwriting my CSS as well as theme options, I am using the theme Canvas from whoothemes in WP, I am not sure how to edit it in order to stop it from overwriting all CSS and theme options without loosing my slider caption or garbling my fonts.

    Here’s the PHP section:

    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/helveticalt.font.js"></script>
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/HelveticaNeueLT.font.js"></script>
    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/scripts.js"></script>

    When deleting:

    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/cufon-yui.js"></script>

    I end up loosing my slider text.

    When editing the font from HelveticaNeueLT to the font I want to use CenturyGothic here:

    <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/HelveticaNeueLT.font.js"></script>

    The text ends up crashing for lack of line spacing and I get random bold and non bold fonts on the site titles h1.

    I am not used to working with php, mainly do designing, so if someone has a detailed yet reasonably simple answer that would be great!

    Thanks!

  • The topic ‘Cufon font script overwriting CSS’ is closed to new replies.
Skip to toolbar