@Chouf1 Thanks, i know for sure how to change css of an element, but i have to create this element at first …
and the code i was looking for is :
` $wp_toolbar->add_node(array(
‘id’ => ‘bp-notifications’,
‘title’ => __(‘ ‘),
‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/notices/’,
/*’meta’ => array(‘class’ => ‘notifications’)*/
)); `
thanks to @bp-help , this is how to add a picture.
Am i right, with the code above, there will be a div with the id bp-notification and a image will be place into it ? Is there a way to just create a div with a certain id and then control the image via background (css) ?
I added the code and right now my code in this section (bp-member-adminbar.php) is this: Pastebin Code
Hey thanks for your reply, but
this is absolutely not what i’m lookin for. As i mentioned before, i already go through some code and stuff , i also found this already (also in your link)
`/**
* Add the Smashing WP Exoplanets menu
*/
function smashing_wp_exoplanets_menu() {
global $wp_admin_bar;
$wp_admin_bar->add_menu(array(
‘id’ => ‘smashing-wp-exoplanets’,
‘title’ => __(‘ExoplanetArchive’),
‘href’ => ‘http://exoplanetarchive.ipac.caltech.edu/index.html’
));
}`
so you can add a new menu item. Even if this doesn’t work for me, i didn’t try to add a new menu, but an image. .