Skip to:
Content

BuddyPress.org

Opened 3 years ago

Last modified 8 days ago

#8561 reopened enhancement

Allow Custom Logo in Email Header, and allow Header and Footer to accept HTML Content

Reported by: gamicord's profile gamicord Owned by:
Milestone: Priority: normal
Severity: normal Version: 9.1.1
Component: Core Keywords: needs-design-feedback
Cc:

Description

I downloaded and installed a simple Email Template plugin that I like. Here’s the link– (https://wordpress.org/plugins/email-templates/)

The only difference between that one and BuddyPress is that it let’s us add our Custom Logo: which is good for branding.

1.) Can BuddyPress add this functionality to make it possible for us to add our Logo by default?

2.) Can BuddyPress make it possible for the Header to accept HTML Content?

This will be good for us to achieve more flexibility and control.

If BuddyPress will take it a step further, it should make it possible for us to pull dynamic Content into the Header and Footer, and then be able to style these with plain CSS.

a.) Add icons or Logo to Email Footer.
b.) Add your Social Media handles to Footer.
c.) Move the “Subscribe” text to Left, Middle or Right position.
d.) Use HTML on Header and Footer, to add certain elements like Dashicons, Font Awesome icons, and so on.

e.) Make the Email Template a Drag-and-Drop Feature built with Blocks, and can be saved as Email Templates.

Thanks for your understanding in implementing this request.

Change History (4)

#1 @imath
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Hi,

You can already achieve a, b, c, d by overriding the email template from your active theme. You simply need to copy the bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php file into a /buddypress/assets/emails/ directory of your theme. Once there you can do your edits.

About e) I believe we'll first try to do this for regular BuddyPress content when the WP FSE feature will be stable enough. I'm unsure we'll do it for email templates. Of course if someone want to contribute to BuddyPress to add it, we'd be very happy.

#2 @gbordormor22
12 months ago

Your answer is helpful, but not very helpful.

What this means, is that-- for those who are strong Developers and can write PHP, and know much about Template overrides, your answer would have led them on the right path of how to solve their problem.

But for those who are Dummies, and know nothing about writing the first line of PHP, and know nothing about Template overrides, your answer will leave them more confused and lost than ever.

I am asking for a default feature in BuddyPress Core-- where we don't need to do anything extra to get our BuddyPress Email Header to natively accept our Site Logo either through Tokens or Short tags like {site_logo}.

You see, in WordPress, we simply go to Customizer. And under Site Identity, we choose Site icon, Site Logo, Tagline and all such--- without needing extra Code snippets, Template override and any other whatnots.

I am asking that BuddyPress 12.0 should function in similar way-- where in the Settings, we should just normally add Static or dynamic contents like {site_logo} in the Header, and this should normally fetch the Site Logo, without us needing extra Code snippets, Template override and any other whatnots.

Since May 2009 of BuddyPress' release, this is 14 Years that BuddyPress has been serving us plain Email Header.

in BuddyPress 12.0, this stance should change. It's time for BuddyPress to advance and evolve its Email Templates, and give us ability to now add our Site Logo in our Email Header, as well as the ability to add Site Logo and other dynamic contents to our Email Footer as well.

2.) I saw this Code on Github---- https://github.com/imath/bp-email-header-logo/blob/master/bp-email-header-logo.php

is this Code still relevant for BuddyPress 12.0 ? --- and can I insert it into my Live website to have the Email Header Logo on my BuddyPress 12.0 powered website?

#3 @gbordormor22
12 months ago

  • Resolution maybelater deleted
  • Status changed from closed to reopened

#4 @andrelic
8 days ago

BuddyPress: By default, BuddyPress does not include a built-in feature to add a custom logo to its email templates.
Solution: You can extend BuddyPress with a custom plugin or by modifying the email templates directly in your theme. A plugin like Email Template Customizer can be adapted or customized to work with BuddyPress notifications to add a logo.


Implementation: A developer can modify the BuddyPress email template by overriding the template files in your theme or creating a custom plugin that hooks into BuddyPress email functions.

BuddyPress: The default BuddyPress email templates are fairly simple and may not support advanced customization like HTML content in the header.
Solution: Customizing the BuddyPress email templates directly in your theme files or creating a plugin to modify these templates would be needed. You can add PHP code to process HTML content within these templates.
Implementation: Modify the BuddyPress template files such as bp-core-email-header.php to allow for HTML content. You would then add your custom HTML code as needed.

BuddyPress: It does not natively support pulling dynamic content into headers and footers of email templates. The templates are designed to be static for simplicity.
Solution: You would need to modify the email templates with PHP and possibly use custom hooks to inject dynamic content from user profiles, site settings, or other sources.

Last edited 8 days ago by andrelic (previous) (diff)
Note: See TracTickets for help on using tickets.