Adds Neuralab branding to WordPress dashboard and login.
There are two ways to add the plugin:
- Download option - Download the plugin from the repo.
Note: Don't forget to rename the folder to
neuralab-branding-mainsince GitHub adds the branch name to the folder name. - Clone option - Clone the plugin (
git clone [email protected]:neuralab/neuralab-branding.git) towp-content/pluginsfolder. Note: Don't forget to remove.gitfolder in theneuralab-brandingfolder.
To add the "a.neuralab.site" link to your themes footer place this to the desired location:
<?php
if ( class_exists( 'NRLB_Branding' ) ) {
echo nrlb_branding()->a_nrlb_site();
}
?>nrlb_branding_a_nrlb_site - Filter the HTML markup of nrlb_branding()->a_nrlb_site() method:
<?php
function pg_a_nrlb_site( $link, $url, $copy ) {
return '<a class="my-class" rel="noopener" href="' . esc_url( $url ) . '">' . esc_html( $copy ) . '</a>';
}
add_filter( 'nrlb_branding_a_nrlb_site', 'pg_a_nrlb_site', 10, 3 );
?>Note: Don't forget to leave the rel="noopener" on the <a> tag if you need to filter the markup.