×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: [solved] When is the inline css created?

[solved] When is the inline css created? 10 years 9 months ago #126

  • Anonymous user
  • marcelke's Avatar
  • Posts: 43
  • Karma: 1
Hello,

I have made a new template and use JCE as editor. I did this by coping an existing template that I have made earlier in Acajoom. I use no in-line css or css links in the template, I removed them all. The css styling that I see in the acymailing template is the same that the editor uses (as put in the JCE configuration and is the same as my website's css. So for example if I create a Joomla article it is shown in the JCE editor as it will be on the website when I publish the article.
When I send a test email I don't see any in-line css applied in the newsletter.

In Style : Classes replaced by in-line CSS I use
Style for the content area: font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 150%; color: #646464;
However the color in the newsletter is black and the font family looks like Times new roman? I think it my outlook style?
In the source of the newsletter itself I don't see any in-line css.

Any ideas what I or acymailing might be doing wrong?

Kind regards,
Marcel
Last Edit: 10 years 9 months ago by Anonymous user.
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #127

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Hello Marcel,

The inline CSS is replaced when you do a preview or when you send your Newsletter.
Nevertheless the default styles added in the template are applied to content/events/products inserted using the tag system.
If you didn't insert the content with the tag system but used directly class styles, they won't be replaced if it's not the same class name... do you see what I mean?

Maybe you should add new classes to be replaced in your template...?

If you can add on your next post a part of the html of your Newsletter, I could tell you exactly why it's not replaced.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #128

  • Anonymous user
  • marcelke's Avatar
  • Posts: 43
  • Karma: 1
Hello,

I understand it but not quit the 'classname' thing. Now that you mention: I do see that the inline css of the tags (the see here if you cant see the images to view online) 'tag is shown and works in the newsletter.
Some help wit the rest / the classname will be welcome.
I put the first lines of the newsletter below.
Thanks for the help.

Kind regards,
Marcel
<table style="width: 601px; height: 1858px;" align="center" border="0">
<tbody>
<tr>
<td><center>Als de nieuwsbrief niet leesbaar is klik dan, {readonline}hier{/readonline} om het online te lezen.</center></td>
</tr>
<tr>
<td><img alt="header_nieuwsbrief_600x94" src="images/nieuwsbrieven/header_nieuwsbrief_600x94.png" width="600" height="94" /></td>
</tr>
<tr>
<td>
<h1><img style="margin: 5px 15px 5px 5px; float: right;" alt="persoon7-2" src="images/stories/persoon7-2.jpg" width="91" height="101" /></h1>
<h1>E-info oktober 2009.</h1>
<p>Beste  {subtag:name|part:first},</p>
<p>In deze E-info meer over:</p>
<ul>
<li>Meditatie (oefen)avonden </li>
<li>Meditatie oefening: de      aardings meditatie</li>
</ul>
<p>In de volgende E -info's: <br />Healings en waarnemingen. Hoe werkt dat? Ik krijg vaak de vraag:  'hoe werkt dat nu een healing en waarneming?'. In de  komende E-info's zal ik er alles over vertellen!</p>
<p> </p>
<hr />
<p> </p>
<h1><span style="color: #ff9900;"><em>Nieuw!</em></span> Meditatie (oefen)avonden. <span style="color: #ff9900;"><em> </em></span><em> </em></h1>
<p>Met ingang van oktober worden er maandelijks meditatie (oefen) avonden georganiseerd. De avonden staan op zich en je kunt deelnemen wanneer je wil. <br />Iedereen kan deelnemen. Ook als je nog geen ervaring hebt met mediteren.</p>
<p>Op deze avond doen we:</p>
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #129

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
The code you pasted on your last post does not contain any CSS class name.
So AcyMailing won't add any inline CSS in your e-mail.

I guess that you have CSS applied to titles (H1) on your own website template and this is the CSS you would like to be applied, am I right?

So instead of sending just
<h1>E-info oktober 2009.</h1>
you would like AcyMailing to send
<h1 style="yourInlineCSShere">E-info oktober 2009.</h1>

Actually AcyMailing can do that if you add a class name to your code:
<h1 class="acymailing_title">E-info oktober 2009.</h1>

But if it's really what you want, it would not be complicated for us to give the ability to set the style applied to the h1 tag...

Did I understand properly the issue?
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #130

  • Anonymous user
  • marcelke's Avatar
  • Posts: 43
  • Karma: 1
I guess that you have CSS applied to titles (H1) on your own website template and this is the CSS you would like to be applied, am I right?

Yes that is what I would like. So my newsletter will have the same css as articles on the website.

If you can help me to do that, will be great!

Thanks,
Marcel.
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #131

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
No problem, that will be ready for the 1.0.6 release (next week).
So in more of the standard classes, we will add something to replace h1, h2 and h3 titles in the template edition.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #132

  • Anonymous user
  • marcelke's Avatar
  • Posts: 43
  • Karma: 1
Great,
Don't forget the content (body?) style?

Kind regards,
Marcel
Please log in to post a reply

Re:When is the inline css created? 10 years 9 months ago #136

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
I'm not sure about the body style, you can easily add it to a global div in your template and do never change it...
I think the h1,h2,h3 can be very useful but I don't find the body css very useful.

What do you think?
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:[solved] When is the inline css created? 10 years 8 months ago #214

  • Anonymous user
  • marcelke's Avatar
  • Posts: 43
  • Karma: 1
Thanks for the update in acymailing with more classes.

About the body class. Maybe I didn't mentioned the right one. I mean the one for the content text. P class? Its the one for just plain text like I am typing right now.
It would be very nice if you can add it. Is seems that the jce editor quicks out all code for inline css or the link when you use an external css file, when you save the template.
Beside that I don't know if you can use inline css and an external css in the same template. I don't think so?
Well as you might figure out I don't have a lot of knowledge with these issues.

Hopefully you can help me wit this.

Kind regards,
Marcel
Please log in to post a reply

Re:[solved] When is the inline css created? 10 years 8 months ago #219

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Hello Marcel,

The style applied to h1, h2, h3 was an excellent idea, it's much easier to use when writing a Newsletter, thank you for the idea.

These styles are very useful because you use them several times when writing a Newsletter so this way you don't have to write anything else in your code to make sure it will be displayed properly.

I guess you want to set a style on your content (a default size, a default font, maybe a colour...) but that should be done only one time in your own template and not applied to each <p>.
If JCE quicks out all the code for inline CSS, you can create a new class to be replaced in your template and apply this class to the first div you will see when editing your template.

Example :
Edit your template and create a new style :
Class Name : mybody
Style : color:red;


Then edit your template body and display the source code.
You should see a first div or table which includes all the rest.
Apply the class name to this div : <div class="mybody">...

So now if you preview a newly created Newsletter using this template, you should see all your text in red.

The modifications on the template won't be applied to existing Newsletters (except the styles), you will have to create a new Newsletter to test it properly if you change your template source code.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply
Time to create page: 0.069 seconds
Powered by Kunena Forum