As you can see I’m changing some im store text links and buttons by images links.
I was able to do it in some places -not sure the right way ;)- changing the php code of the plugin.
I’jm not able to do this with the links in the left upper side. 🙁 ¿Can you help me with this?
If there is a more “elegant ” or right way to make what I’ve made “my way” please let me Know.
I have very limited and general programming knowledge, but I can edit the files you tell me.
If it is possible I prefer to make this changes not edit the php code of the pluging, could these changes be made with css in my themes preferences? If not tell me what files and how to do it.
The plugin uses it’s on hooks just like WordPress to allow you to make modification without editing the code. That way you can update the plugin at any time.
You can use is these two hooks
function change_image_store_links( $link, $data ){
if( $data[ 'value' ] == 'something' ){
// modify link here
$link = "my-new-link";
}
return $link;
}
add_filter( 'ims_image_link', 'change_image_store_links' )
You can use add_filter( 'ims_image_data', 'my_function' ) to modify the data provided in the previous function.
You can add additional links by using add_filter( 'ims_image_tag_meta', 'my_function' )