• Hi,

    Theme provide good user experience, in build social share button on post is good, i have tested all button today & find twitter, facebook, google plus working fine, 1 lick sharing.

    but on pinterest sharing it’s show :

    You need to upload an image or provide the ‘image_url’ parameter

    I m not using featured image placeholder. site in news aggregator & some of post have images in content, when user try to share it on pinterest it’s show above error.

    May be reason of not using featured image.

    it’s possible to sharr use first image of post as a image & if more than one image in post, use first image.

    bcoz sharr is inbuild in theme, don’t know how to do it.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bhaskarping

    (@bhaskarping)

    Hi bdbrown,

    thanks for reply.

    https://www.ads-software.com/plugins/auto-post-thumbnail/

    have ability to use first image as featured image & but don’t remove same image use as featured image in content means two image first in featured image then content.

    when ask author about it :
    is it possible for the plugin to *remove the image from the post that it has used? I have tried as many of these kinds of plugins as I can find and they all leave the image in the content so when the content is viewed they see TWO images. The Featured Image at the top of the page, and then the image again in the body of the post. It looks wrong and sloppy. Can your plugin do this?
    sanisoft
    sanisoft Author

    3 months ago

    Hi, my plugin does not do what you want but this plugin can do it. https://www.ads-software.com/plugins/search-regex/

    so it haven no useful, no great user experience.

    for :
    https://www.ads-software.com/support/topic/humble-code-proposition-display-first-image-as-featured-when-none-is-defined?replies=1

    i don’t understand where the put these code on

    in functions.php
    in content.php
    in content-featured.php
    in content-standard.php

    exact position where put the code in these files

    also bcoz i m not using regenerate thumbnail plugin, it’s require to activate it to do the task

    Regards

    If you don’t have a child theme you should create one:
    1. In Theme Options click the Help tab in the upper righthand corner.
    2. One of the options in the list is to download a sample child theme. This downloads the theme zip file to your local computer.
    3. Install the new theme in your Admin panel by selecting Add New > Upload Theme > Choose File, then select the zip file you downloaded.
    4. Activate the child theme.
    You’ll now have a pre-configured child theme with a style.css file and functions.php file to which you can add customizations.

    You can paste the suggested code at the bottom of the child theme functions.php file. You would then copy the content files from the parent theme to the child theme and edit them there. In each one you will find a section of code near the top that looks like this:

    <?php if ( has_post_thumbnail() ): ?>
    	<?php the_post_thumbnail('thumb-medium'); ?>
    <?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
    	<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
    <?php endif; ?>

    The other code goes in the middle of that block:

    <?php if ( has_post_thumbnail() ): ?>
    	<?php the_post_thumbnail('thumb-medium'); ?>
    
    -----> insert new code here
    
    <?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
    	<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
    <?php endif; ?>
    Thread Starter bhaskarping

    (@bhaskarping)

    Hi bdbrown,

    Still confuse.

    https://www.ads-software.com/support/topic/humble-code-proposition-display-first-image-as-featured-when-none-is-defined?replies=1

    says need four file to edit (add code)
    in functions.php
    in content.php
    in content-featured.php
    in content-standard.php

    function.php (as i understand)
    put the code on bottom, right?

    for other three file
    in content.php
    in content-featured.php
    in content-standard.php

    put the code between :
    <?php if ( has_post_thumbnail() ): ?>
    <?php the_post_thumbnail(‘thumb-medium’); ?>

    —–> insert new code here

    <?php elseif ( ot_get_option(‘placeholder’) != ‘off’ ): ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php the_title(); ?>” />
    <?php endif; ?>

    you say :
    You can paste the suggested code at the bottom of the child theme functions.php file. You would then copy the content files from the parent theme to the child theme and edit them there. In each one you will find a section of code near the top that looks like this

    ohh, i find that there is just 3 files in child theme, so i need to copy

    content.php
    content-featured.php
    content-standard.php

    & paste in child theme & edit theme according your suggestion.

    Try to do it right now & let’s inform you results

    Regards
    Thanks

    Thread Starter bhaskarping

    (@bhaskarping)

    Hi bdbrown,

    Waiting for your confirmation for that things i describe above is right.

    one thing more i need to upload child theme with name “hueman-child-master” or other name.

    Regards

    function.php (as i understand)
    put the code on bottom, right?

    Correct.

    ohh, i find that there is just 3 files in child theme, so i need to copy

    content.php
    content-featured.php
    content-standard.php

    & paste in child theme & edit theme according your suggestion.

    Correct.

    upload child theme with name “hueman-child-master” or other name.

    That’s the default name of the child theme downloaded from the author’s site. It doesn’t matter what you name it but, if you’re going to change the name of the child theme folder, activate another theme first or it will break the site when you rename the child theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Social Share Button on Post : share with Pinterest showing Error’ is closed to new replies.