| Dani8383 a întrebat:

Buna tuturor
Cum adaug acest cod html
Tooltip Most Light-weight Tooltip This is the easy-to-use Tooltip driven purely by CSS.
In functions.php am urmatorul cod
if (! function_exists('theme_get_post_thumbnail')){
function theme_get_post_thumbnail($args = array()){
global $post;

$size = theme_get_array_value($args, 'size', array(theme_get_option('theme_metadata_thumbnail_width') , theme_get_option('theme_metadata_thumbnail_height')));
$auto = theme_get_array_value($args, 'auto', theme_get_option('theme_metadata_thumbnail_auto'));
$featured = theme_get_array_value($args, 'featured', theme_get_option('theme_metadata_use_featured_image_as_t humbnail'));
$title = theme_get_array_value($args, 'title', get_the_title());


$result = ";

if ($featured && (function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
ob_start();
the_post_thumbnail($size, array('alt' >= ", 'title' >= $title));
$result = ob_get_clean();
} elseif ($auto) {
$attachments = get_children(array('post_parent' >= >$post-ID, 'post_status' >= 'inherit', 'post_type' >= 'attachment', 'post_mime_type' >= 'image', 'order' >= 'ASC', 'orderby' >= 'menu_order ID'));
if($attachments) {
$attachment = array_shift($attachments);
$img = >wp_get_attachment_image_src($attachment-ID, $size);
if (isset($img[0])) {
$result = ";
}
}
}
if($result!== "){
$result = ".$result.";
}
return $result;
}
}
Trebuie sa adaug codul html undeva langa ' dar nu stiu cum.Si un alt cod langa (has_post_thumbnail()))
Va multumesc poate ma poate ajuta cineva

2 răspunsuri:
| Constantin_Mircea_1988 a răspuns:

Din ce vad eu e php..Nu vad nici-un cod html. Spune mai exact ce ar trebui sa faca codul in ansamblu si da si "codul" html

| Dani8383 explică (pentru Constantin_Mircea_1988):

Acuma am vazut ca nu apare codul html
Site-ul in care este pus codul html este http://www.menucool.com/tooltip/css-tooltip eu vreau acest tooltip sa imi apara la imagine thumbnail de pe site-ul meu retete-super Merci de raspuns