Title: true mag theme
Last modified: August 22, 2016

---

# true mag theme

 *  Resolved [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/)
 * hello.. i try the plugin and i need for my website because i have a lot of pictures
   but is not working in truemag theme i try the css and some functions from previous
   post but nothing..
 * [http://prntscr.com/6brm62](http://prntscr.com/6brm62) (the 2 is normal but the
   first from external is not working)
 * [https://wordpress.org/plugins/external-featured-image/](https://wordpress.org/plugins/external-featured-image/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852454)
 * Hi vl4d. Could you please share a link to your website? The screenshot is not
   very helpful…
 *  Thread Starter [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852455)
 * [here](http://an1me.info) but now i dont have the plugin on…
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852466)
 * 🙁 I need you to activate the plugin again and share a couple of links: one with
   a regular featured image (which should be working) and another with our plugin
   not working. To help you, I need to see what’s happening exactly.
 *  Thread Starter [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852468)
 * ok is ON now and i will test this post [post](http://an1me.se/digimon-adventure-movie/)
   
   you can see the post in home page down and in inside i have this code to show
   the featured image `<div style="float:right;"><?php the_post_thumbnail( $size,
   $attr ); ?></div>`
 * is not working i try with ccs codes from other post but nothing changes
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852471)
 * I see you’re using the appropriate function (that is, `the_post_thumbnail`). 
   If you’re not seeing the featured image, then it means there’s an issue with 
   your CSS rules. Try adding something like:
 *     ```
       .nelioefi {
         width: 300px !important;
       }
       ```
   
 * and it should work! Note you can define whichever width you want!
 *  Thread Starter [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852473)
 * the css is working but only inside the post, in home page (last post) is not 
   working need other css?? can you check thank you
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852478)
 * Hi! Unfortunately, in order to fix this issue one has to edit the source code
   of the theme. A few months back (actually, almost one year ago) I modified TrueMag
   so that it could display external featured images. Right now, I don’t know how
   this theme looks like and what changes were applied by its developers… If you
   want, you can send me a copy of your theme (customers AT nelio software DOT com)
   and I’ll take a look at it as soon as I have some spare time (but no promises!).
 *  Thread Starter [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852479)
 * ok i send, will wait.. (thank you)
 * _[ [No bumping please](http://codex.wordpress.org/Forum_Welcome#No_Bumping). ]_
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852503)
 * Hi! Unfortunately, this theme is extremely complex and there’s a lot of files
   that require some tweaking. I’ll give you some hints and an example of what you
   have to look for and how you can fix it, but the rest is up to you.
 * Go edit a file named `loop-item.php` and go to line 263. You’ll see the following
   piece of code:
 *     ```
       if(has_post_thumbnail()){
         $thumbnail = wp_get_attachment_image_src( /* ... */ );
       }
       else {
         $thumbnail[0]=function_exists( /* ... */ )/* ... */;
       }
       ```
   
 * There you can see how TrueMag usually includes featured images in your site:
    - It checks whether the current post has a featured image,
    - if it does, it obtains the SRC of that image
    - if it doesn’t, it adds a default image SRC.
 * What we have to do is add a tiny piece of code after this if-then-else block 
   that obtains the external featured image (if any). For instance:
 *     ```
       if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( get_the_ID() ) ) {
         $thumbnail[0] = nelioefi_get_thumbnail_src( get_the_ID() );
       }
       ```
   
 * This will check whether the current post uses a external featured image and, 
   if it does, it will override the thumbnail with the proper image. Quite easy,
   huh?
 * In the end, the “problem” is only the complexity of reverse engineering the theme
   and discovering which file(s) is(are) responsible of each part of the final HTML
   code, addressing them, and tweaking them properly. As I said, however, this is
   up to you now! If you want me to take care of it, just send me an e-mail and 
   we’ll prepare a quote for this work 😉
 *  Thread Starter [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852504)
 * so i try the code like this
 *     ```
       <a href="<?php  echo $permalink ?>">
       										<?php
       										if(has_post_thumbnail($post->post_id)){
       											$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->post_id),'thumb_520x293', true);
       										}else{
       											$thumbnail[0]=function_exists('tm_get_default_image')?tm_get_default_image():'';
       										}
       										else ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( get_the_ID() ) ) {
       							                $thumbnail[0] = nelioefi_get_thumbnail_src( get_the_ID() );
       										}
       										?>
       										<img src="<?php echo $thumbnail[0] ?>" alt="<?php the_title_attribute(); ?>" title="<?php the_title_attribute(); ?>">
       										<?php if($format=='' || $format =='standard'  || $format =='gallery'){ ?>
                                               <div class="link-overlay fa fa-search"></div>
                                               <?php }else {?>
                                               <div class="link-overlay fa fa-play"></div>
                                               <?php }  ?>
       									</a>
       ```
   
 * and is not working
 * i delete the normal function and replace with yours again nothing in home page
   is not change is sure from loop-item.php??

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘true mag theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-featured-image_947a5f.svg)
 * [Nelio External Featured Image (discontinued) - Available in Nelio Content](https://wordpress.org/plugins/external-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/external-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-featured-image/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [vl4d](https://wordpress.org/support/users/vl4d/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/true-mag-theme/#post-5852504)
 * Status: resolved