Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Access Keys

    (@access-keys)

    Hello there,

    Do you mean to set the image title attributes to post title instead of alt text?

    Thanks

    Thread Starter bimmerime

    (@bimmerime)

    yes exactly. is it possible?

    Plugin Author Access Keys

    (@access-keys)

    Hello there,

    Yes it’s possible. Please change the post title attributes to – <?php echo get_the_title(); ?> and you will get the post title.

    Thanks

    Thread Starter bimmerime

    (@bimmerime)

    hi
    thanks for the reply. but i couldn’t find where to change the attributes. little help please!

    Plugin Author Access Keys

    (@access-keys)

    Hello there,

    Please go to plugins\accesspress-pinterest\inc\frontend\latest-pins-shortcode.php and please go to line no 33 and change the image’s title attribute to <?php echo get_the_title(); ?>

    Thanks

    Thread Starter bimmerime

    (@bimmerime)

    //pinterest latest pins widget shortcode
            function apsp_latest_pins_widget_shortcode($attr) {
                ob_start();
                include( 'inc/frontend/latest-pins-shortcode.php' );
                $html = ob_get_contents();
                ob_get_clean();
                return $html;

    where exactly should <?php echo get_the_title(); ?> go?

    Plugin Author Access Keys

    (@access-keys)

    Hello Bimmerime,

    I think you misunderstood what we are trying to say.

    Please go to plugins\accesspress-pinterest\inc\frontend and in that folder there is a file named latest-pins-shortcode.php and in that page on line no 33 please change the image title attribute to <?php echo get_the_title(); ?>

    If you find it difficulty please send us your site details to our support email [email protected] and we will fix it.

    Thanks

    Thread Starter bimmerime

    (@bimmerime)

    i’m sorry but my website is not launched yet. but here are the only files i found
    accesspress-pinterest/accesspress-pinterest.php
    accesspress-pinterest/index.php
    accesspress-pinterest/css/backend.css
    accesspress-pinterest/css/frontend.css
    accesspress-pinterest/js/backend.js
    accesspress-pinterest/js/frontend.js
    accesspress-pinterest/js/jquery-masionary.js
    accesspress-pinterest/readme.txt

    witch one should i modify?

    Plugin Author Access Keys

    (@access-keys)

    Hello there,

    Looks like you tried to edit the plugin files from wordpress backend.
    Please use your ftp or cpanel to find the mentioned file to do edits.

    Thanks

    Thread Starter bimmerime

    (@bimmerime)

    hi,
    so i managed to find the file and line 33 after i changed the title attribute i get something like this

    <a href="<?php echo esc_url($item->get_permalink()); ?>" target="_blank" title="<?php echo 'Posted ' . $item->get_date('j F Y | g:i a'); ?>" ><img src='<?php echo $pin_image[0]; ?>' title='<?php echo get_the_title(); ?> go?' alt="<?php echo $item->get_title(); ?>" /></a>
    but i still get the title attribute when i pin something instead of the post title
    any ideas?

    Plugin Author Access Keys

    (@access-keys)

    Hello there,

    Can you please send us your site details to our support mail [email protected] and we will help you to fix the issue.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘set the image description to the post tilte’ is closed to new replies.