AcyMailing
Our siteForumBlog
Latest version
Latest version
  • AcyMailing documentation
  • How to renew AcyMailing license?
  • How to switch AcyMailing license plan?
  • Setup AcyMailing
    • Update from AcyMailing 5
    • Installation
      • Download AcyMailing
      • Install AcyMailing
      • Update AcyMailing
      • Switching from Starter to a paid version
      • Uninstall AcyMailing
    • Move AcyMailing between websites
      • Migrate between Joomla! and WordPress
      • Move between two WordPress websites
      • Switch from Joomla 3 to Joomla 4/5
    • Configuration
      • License
      • Mail settings
        • Set up your DKIM : DomainKeys Identified Mail
        • Set up Oauth 2.0
      • Queue process
      • Configure your send process
      • Subscription
      • Bounce handling
      • Data collection
      • Security
      • Languages
    • Step by step guide
    • Multilingual websites
      • Translate AcyMailing
      • Custom translation
    • Subscription to your lists
      • Subscription form - Joomla
      • Subscription form - WordPress
      • Other subscription methods
      • RSForm!Pro integration
  • External sending methods
    • AcyMailing Sending Service
    • Amazon SES
    • ElasticEmail
    • Mailgun
    • Postmark
    • SendGrid
    • Brevo SMTP Relay
    • Brevo / Sendinblue (Legacy)
  • Main pages
    • Dashboard
    • Subscription forms
      • Subscription Form
      • Header
      • Footer
      • Popup
      • Shortcode (Wordpress)
    • Subscribers
      • Create a subscriber
      • Import subscribers
      • Export subscribers
    • Custom fields
      • Create Custom Field
      • Examples
    • Lists
      • Create a list
    • Segment
      • Edition
    • Emails
      • Creation of a campaign
        • Choose a template
        • Edit email
        • Recipients
        • Segment
        • Send settings
        • Tests
        • Summary
      • A/B testing
      • Automatic campaigns
      • Follow-up
        • Trigger
        • Condition
        • Emails
        • Summary
      • Special mails
    • The email editor
      • Tenor integration
      • Unsplash integration
    • Templates
      • Create a template
      • Import a template
    • Email overrides
      • Edition
    • Automations
      • Information
      • Conditions
      • Actions
      • Action targets
      • Summary
    • Scenario
      • Create a new Scenario
      • Performances
    • Queue
    • Statistics
      • Overview
      • Detailed Statistics
      • Click map
      • Links details
      • User click details
      • Statistics per list
    • Add-ons
    • Mailbox actions
      • Mailbox actions
        • Edition
      • Bounce rules
        • Configuration
        • Listing
        • Create bounce rules
  • Advanced
    • Send follow-up messages based on subscription
    • Let site users use AcyMailing
      • List management
      • User management
      • Campaigns management
    • Show an archive of the sent newsletters
    • Show a profile edition form on your site
    • Partner platform
      • Log in
      • Dashboard
      • Single domain details
  • Integrations
    • Settings
    • Joomla add-ons
      • Joomla articles
      • CB Subscriptions
      • Community Builder
      • Community Quiz
      • Community Surveys
      • Contacts
      • Dashboard Quick icon
      • Docman
      • DPCalendar
      • EasyBlog
      • EasyProfile
      • EasySocial
      • Event Booking
      • FLEXIcontent
      • HikaShop
      • iCagenda
      • JCal Pro
      • jDownloads
      • JEvents
      • JSW CRM
      • JTicketing
      • K2 Content
      • Membership Pro
      • Module
      • PayPlans
      • Phoca Download
      • RSEvents!Pro
      • Seblod
      • Shika
      • VirtueMart
      • Zoo
    • WordPress add-ons
      • WordPress posts and pages
      • Advanced Custom Fields (ACF)
      • Business Directory
      • Contact Form 7
      • Easy Digital Downloads
      • EventON
      • Events Manager
      • Gravity Forms
      • Learndash
      • MemberPress
      • Modern Events Calendar
      • The events calendar
      • Ultimate Member
      • Uncanny Automator
      • WooCommerce
    • All websites add-ons
      • Articles, posts and pages from WordPress and Joomla
      • Automation - export action
      • Create user
      • Custom headers
      • RSS and Atom feeds
      • Table of contents generator
      • Universal filter
    • Zapier
  • Developers
    • Developer Documentation
    • Making a custom add-on
      • Execute custom script on specific AcyMailing actions
      • Insert a dynamic text in an email for Joomla
      • Insert a custom block in an email for Joomla
      • Insert a dynamic text in an email for WordPress
      • Insert a custom block in an email for WordPress
    • Custom script using our code
    • Create a page override
    • Joomla quickstart package with AcyMailing
    • Customise inserted content
  • FAQ
    • Could not instantiate mail function - AcyMailing
    • Spam issue
    • Your send process is slow?
    • Compatibility issues
    • Mail archive not displaying special characters
Powered by GitBook
On this page
  • Classic ways to change the inserted content
  • Using custom CSS
  • Using a custom view
  1. Developers

Customise inserted content

Change the way the content you insert in your emails look like using CSS or a custom view.

PreviousJoomla quickstart package with AcyMailingNextCould not instantiate mail function - AcyMailing

Last updated 3 months ago

AcyMailing offers the possibility to easily insert your site's content directly in your emails, be it a site article/post, a product from your preferred e-commerce extension or the upcoming events...

Classic ways to change the inserted content

AcyMailing offers a lot of options to fully customise the inserted content by letting you choose which parts of the content it should insert (the title, the main picture, the description, a read more link, etc...):

You can then change the way these parts are organised using the Format section, we prepared a lot of default formats you can pick:

Using custom CSS

If this isn't enough for your needs, you have the possibility to apply custom CSS code to the inserted content.

You can add your CSS code when editing your email, in its Settings section:

For every integration we have for content insertion (site article, product, event, etc...) we use the same CSS classes:

  • acymailing_content: on the <div> element containing all the inserted content

  • acym_title: on the <h2> element containing the title

  • acydescription: on the <div> element containing both the main picture and the description

  • content_main_image: on the main picture <img>, if any

  • acymailing_readmore_link: on the read more link <a>

  • acymailing_readmore: on the <span> element inside the read more link

Note that in the screenshot above, the first options let you change the way the main HTML elements look like. If you change the <h2> element for example, it will be applied on the titles of the inserted articles without you having to do some custom CSS.

Using a custom view

In some cases, changing the CSS isn't sufficient. If this is your case, you have the possibility to change the HTML structure of inserted content by building your own custom view.

Note that if you create a custom view it will totally replace the normal output. This means that the insertion options on the right are not taken into account anymore (the Display, Format, Pictures sections, etc...).

To create one you can either go in the settings of an add-on that inserts content and then click on the button Edit custom view, or you can find a similar button below the insertion options when inserting the content:

A popup should appear, with a default view that you can replace / customise as you want:

The data available to include is shown on the right of the screen. First click somewhere in the edition part, then then click on "title" for example to include it where your cursor is in the edition part.

Once you're satisfied with the structure, click the Save button to automatically use it each time an article is inserted in an email.

For security reasons, it isn't possible to use PHP code in the custom view, you only have access to HTML elements and the data shown on the right. You then won't be able to customise the format for date fields for example.