Ok with your help I finaly get it works like I expected it should be (for me)
In my child theme I've set in the styles.css the Share This Module css like this
* Share This Module
-------------------------------------------------------------- */
.share_this_module{float:right;margin-bottom:0;background:none!important;box-shadow: none !important;}
.share_this_title{display:none;}
.share_this_content{position:relative;top:-40px;}
.post_sociable{margin-right:5px;vertical-align:middle;}
.share_this_title,.post_sociable{background:none!important;}
It works great, as you can see here :
http://cardiopro.fr/bonjour-tout-le-monde/
but the only pbm I can see is that I had to change the images files in the "post_sociables" folder
I played around to see if there were an easy way to change this folder by one in my child theme
What I learned is that there is a function that set these images path. It seems to be
mysite_sociable_bookmarks()
And it looks like it is not possible to set it in a child theme like this. Indeed there is no
"if ( !function_exists ('mysite_sociable_bookmarks'))
But I found that this function is called in a child theme ready function "mysite_post_sociables"
if ( !function_exists( 'mysite_post_sociables' ) ) :
/**
*
*/
function mysite_post_sociables() {
$out = '';
$social_bookmarks = mysite_get_setting( 'social_bookmarks' );
$social_bookmarks_post = get_post_meta( get_the_ID(), '_disable_social_bookmarks', true );
if( empty( $social_bookmarks ) && empty( $social_bookmarks_post ) ) {
$out .= '<div class="share_this_module">';
$out .= '<h3 class="share_this_title">' . __( 'Share this:', MYSITE_TEXTDOMAIN ) . '</h3>';
$out .= '<div class="share_this_content">';
$out .= mysite_sociable_bookmarks();
$out .= '</div><!-- .share_this_content -->';
$out .= '</div><!-- .share_this_module -->';
}
echo apply_filters( 'mysite_post_sociables', $out );
}
endif;
So the idea is to set this function in my functions.php child theme and then replace the line
$out .= mysite_sociable_bookmarks();
by the contents of mysite_sociable_bookmarks and then replace there new post_sociables images path folder to use one in my child theme
So create mysite_post_sociables in my child theme functions.php
And replace
.../...
$out .= '<div class="share_this_content">';
$out .= mysite_sociable_bookmarks();
$out .= '</div><!-- .share_this_content -->';
.../...
by
.../...
$out .= '<div class="share_this_content">';
// thez modified contents of mysite_sociable_bookmarks() here
$sociable_sites = array(
array( "name" => "Twitter",
'icon' => './images/post_sociables/twitter.png',
'class' => 'twitter_icon',
'url' => 'http://twitter.com/home?status=TITLE%20-%20PERMALINK',
),
etc
.../...
$out .= '</div><!-- .share_this_content -->';
Do you think it is the right way or it there an easyer and/or a more modular way of doing this ?
Indeed I don't like include the modified function source rahter than call one
The goal is just to set the updated post_sociables images in the child theme and not update the original ones
But in all cases thanks a lot for your precious help