Support » Fixing WordPress » Post a newsletter to WordPress posts or custom content type

  • Chris8081

    (@chris8081)


    Hello,

    I’ve got some old newsletters that I’d like to add to our website in a separate section.

    When I use my theme Astra and simply copy and paste the newsletter HTML into a post, the newsletter looks broken. With spaces and I assume the CSS from Astra is taking over.

    When I use the theme WP Bootstrap Starter, the newsletter looks better already. Yet, still not like in my Mail program.

    And when I paste the newsletter html into the Newsletter plug-in https://de.wordpress.org/plugins/newsletter/ and check the preview, it looks just fine.

    Is there any option of:
    – Posting my newsletters into a specific post type
    – Being able to use the WordPress search for the newsletter content
    – Preserving the standard HTML / look / rendering of the newsletter like in Thunderbird/Gmail
    ?

    • This topic was modified 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Hello You Wonderful You,

    – Posting my newsletters into a specific post type

    Sure, but you’ll need to set up the post type first before it will appear in your dashboard for you to use it, just as you’re currently doing with the built-in POSTS post type.

    You could write code in your theme’s functions file to do it, or use an existing plugin https://wordpress.org/plugins/search/post+type/

    – Being able to use the WordPress search for the newsletter content

    Sure. Again, you can write your own function in your active theme to do this, or use an existing plugin that can restrict searches to specific post types, tags, categories, etc.

    See https://wordpress.org/plugins/add-search-to-menu/ and https://wordpress.org/plugins/search-filter/

    – Preserving the standard HTML / look / rendering of the newsletter like in Thunderbird/Gmail

    What you’re experiencing is most likely conflicting CSS between your themes and the newsletter’s HTML. To fix this, you’ll need to check the broken page in your browsers’ developer tool, find what CSS is being overridden by your theme, and tweak EITHER the newsletter’s CSS or your theme’s CSS. Unfortunately, there’s no automated way to fix something like this.

    Good luck and stay safe!

Viewing 1 replies (of 1 total)
  • The topic ‘Post a newsletter to WordPress posts or custom content type’ is closed to new replies.