How to add inline CSS in template tags to override Yahoo .yshortcuts?

Hi All,

I've used the helpful info from the other 2 posts on Yahoo styling to override the .yshortcuts styling in my template for my forwardtoafriend and unsubscribe template tags but cannot figure out where to place the inline CSS in the Title & Imagesrc template tags.

My Title tag looks like: <h2><$title link='true' default='Enter Title Here'$></h2>

and my Imagesrc tag looks like: <p class="more"><$title link='true' default='<em>Read More</em>'$> <img src="../images/pfd_read_more.png" alt="Read More" width="40" height="14" /></p>

Any suggestions?
~Isabella

Mathew Mathew, 6 years ago

HI Isabella,

What specific problem do you see with the title and image that you are trying to overcome?


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
isabella, 6 years ago

Hello Mathew,

Thanks for checking in. Yahoo continues to override my styling on these 2 template tags with their .yshortcuts blue coloring. I'd like to apply color via the span property as detailed in the other .yshortcuts override posts detailed in our forum but do not know how to apply it to these 2 specific template tags.

wilbertheinen wilbertheinen, 6 years ago

@Isabella

You can use styles in the head for yahoo. It's only a yahoo problem and yahoo supports css in the head section.

<style type="text/css">
*.yshortcuts {
    color: #3a2808;
}
</style>


Create a Clang!
Capiche, 6 years ago

Are there ways of having multiple yshortcut colours?

wilbertheinen wilbertheinen, 6 years ago

Yes! You can work with css classes. For example:

<style type="text/css">
*.yshortcuts {
    color: #3a2808;
}
td.viewurl *.yshortcuts {
    color: #8c8c8c;
}
</style>

All shortcuts will have the color: #3a2808, but the shortcut in the <td class="viewurl"> will have the different color: #8c8c8c.


Create a Clang!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098