1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NewsMag Lite Nelio External Featured Image

Discussion in 'HTML & JavaScript' started by shaymiller, Jul 1, 2017.

  1. shaymiller

    shaymiller Registered Member

    Joined:
    Dec 3, 2016
    Messages:
    68
    Likes Received:
    1
  2. trickybrains

    trickybrains Newbie

    Joined:
    Jul 1, 2017
    Messages:
    36
    Likes Received:
    5
    Gender:
    Female
    I think you can find a tutorial for it
     
  3. shaymiller

    shaymiller Registered Member

    Joined:
    Dec 3, 2016
    Messages:
    68
    Likes Received:
    1
    I tried to find, but could not. The documentation says find where the featured image funcation is and replace it with that . I can seem to find it

    Code:
    
    
    WordPress offers more than one function for inserting featured images.
    Unfortunately, only one of them has a filter we can use. If your theme is not
    using the (get_)the_post_thumbnail, then our plugin will not be able to
    insert external featured images.
    
    In these cases, the only solution is to tweak your theme and edit some PHP
    code. Unfortunately, there’s no generic solution for doing it. Just locate
    where featured images are being inserted, and edit those lines so that it uses
    the previous function (if possible). Please note that the plugin also offers
    some helper functions that will ease the “tuning” of the theme (check the file
    includes/nelio-efi-main.php to know them and review their documentation).