Forum Replies Created

Viewing 3 replies - 121 through 123 (of 123 total)
  • Plugin Author Antonio Villegas

    (@avillegasn)

    Hi Gary,

    You can download and test the plugin. We offer a free trial (unlimited time, limited tested page views). After that, you can subscribe to one of our plans.

    Thanks for your interest in our services!

    Hi! Please, change the following piece of code in content-single.php of your theme:

    if( has_post_thumbnail() ):
       $img_url = wp_get_attachment_image_src(
          get_post_thumbnail_id(), 'single-thumb' );
    ?>
    <img src="<?php echo $img_url[0]; ?>"
         alt="<?php the_title_attribute(); ?>"
         title="<?php the_title_attribute(); ?>" />
    <?php
    endif;

    With the following piece of code:

    if ( has_post_thumbnail() ):
      if ( function_exists( 'uses_nelioefi' ) &&
           uses_nelioefi( $post->ID ) ) {
        echo the_post_thumbnail();
       } else {
        $img_url = wp_get_attachment_image_src(
          get_post_thumbnail_id(), 'single-thumb' );
    ?>
      <img src="<?php echo $img_url[0]; ?>" alt="<?php
        the_title_attribute(); ?>" title="<?php the_title_attribute(); ?>" />
    <?php  }
    endif;

    And also change in your inc/profitmag-functions.php file of your theme the following fragment:

    $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'slider-beside' );

    with this fragment:

    if ( function_exists( 'uses_nelioefi' )
       && uses_nelioefi( get_the_ID() ) ) {
       $image_url = nelioefi_get_thumbnail_src( get_the_ID() );
    } else {
       $image_url = wp_get_attachment_image_src(
           get_post_thumbnail_id(), 'slider-beside' );
    }

    Probably you’ll also need to change other parts of your theme where the wp_get_attachment_image_src function appears, but with these two examples you’ll get the idea of doing it.

    Best!

    Thread Starter Antonio Villegas

    (@avillegasn)

    Hi Takayuki,

    I’m using WP4.1, hosted in WPEngine.

    The form is here: https://nelioabtesting.com/affiliate-program/

    Thanks for your help.

Viewing 3 replies - 121 through 123 (of 123 total)