Title: Shortcode template reflow question
Last modified: November 3, 2020

---

# Shortcode template reflow question

 *  [sermalefico](https://wordpress.org/support/users/sermalefico/)
 * (@sermalefico)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/)
 * Hi! i load pages inside a loop with echo do_shortcode [e-addons-template id=”
   123″ post_id=”xxx”] in desktop all is fine. The problem is in mobile. There is
   a reflow with the fucking url bar, i try with ajax=”false” css=”false” all combinations
   but is the same, my footer and my header are sticky but i think when start view
   a page loaded by the shortcode its make a reflow because load the content on 
   viewport… mnmmn have you any fix for that or a advice.
 * thx for your time!

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

 *  Plugin Author [Nerds Farm](https://wordpress.org/support/users/nerdsfarm/)
 * (@nerdsfarm)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/#post-13616763)
 * Hi [@sermalefico](https://wordpress.org/support/users/sermalefico/) ,
 * can you send us some examples? (send links to [support@e-addons.com](https://wordpress.org/support/topic/shortcode-template-reflow-question/support@e-addons.com?output_format=md))
 * The “CSS” parameter let you print CSS “inline” (true) or add them as “external
   file” (false), so the result should be the same in your situation.
 * The “AJAX” parameter is for a lazy loading in combo with “Loading”.
 * Why do you think this is related with the Template Shortcode?
 *  Thread Starter [sermalefico](https://wordpress.org/support/users/sermalefico/)
 * (@sermalefico)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/#post-13636839)
 * i think is the chrome mobile bahavior… with sticky position and url bar…
 * don’t worry about it…
 * What I do have problems is trying to display data through Tokens. When I try 
   to show [term:name] it doesn’t work. Give a critical error
 * Failed to load resource: the server responded with a status of 500 ()
 * Instead if I create a shortcode manually with a get_terms foreach to display
 *  <?php echo $term->name;?>
 * I can see it perfectly. I don’t know if you have to see the way of working that
   elementor has or something that doesn’t show the object id of the taxonomies 
   correctly, but I can’t use the tokens for terms to show their meta (title, name,
   id …).
 * Do you know anything about it?
 *  Plugin Author [Nerds Farm](https://wordpress.org/support/users/nerdsfarm/)
 * (@nerdsfarm)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/#post-13642617)
 * In what kind of page did you use the Term Token?
 * Please check the WP Debug Error Log to help us to investigate:
    [https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log](https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_log)
 *  Thread Starter [sermalefico](https://wordpress.org/support/users/sermalefico/)
 * (@sermalefico)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/#post-13644686)
 * I load an a archive template with a foreach of terms from a custom taxonomy echo
   do_shortcode [e-addons term_id=”545″ id=”456″] in a page for example. And in 
   archive template when i put te tokens to retrieve the data, give error 500. but
   if i make a shortcode with php to retrieve data all is fine for exmaple:
 *     ```
       <?php $queried_object = get_queried_object();
       $myVar = $info;
   
       ?>
       <?php  if ($myVar == 'nombre') {?>
   
       <?php echo  $queried_object->name; ?>
   
       <?php } else if ($myVar == 'id') {?>
   
       <?php echo  $queried_object->term_id; ?>
   
       <?php } else if ($myVar == 'descripcion') {?>
   
       <?php echo  $queried_object->description; ?>
   
       <?php } else if ($myVar == 'link') {?>
   
       <?php $term_link = get_term_link( $queried_object->term_id ); ?>
   
       <?php echo  $term_link; ?>
   
       <?php } else { ?>
       <span>hola</span>
       <?php }?>
       ```
   
 * Anyway, in the file term pages it does not return the token data of current term
   of a custom taxonomy.
    On the contrary, it does return the custom fields of ACF,
   so I think this must be how elementor handles this data. That I think is not 
   correct and I don’t know if I should have a dynamic tag in this regard for these
   cases as well as some specific widgets that handle queried object.
 * What do you think?
 * thx!
    -  This reply was modified 5 years, 6 months ago by [sermalefico](https://wordpress.org/support/users/sermalefico/).
    -  This reply was modified 5 years, 6 months ago by [sermalefico](https://wordpress.org/support/users/sermalefico/).
    -  This reply was modified 5 years, 6 months ago by [sermalefico](https://wordpress.org/support/users/sermalefico/).
    -  This reply was modified 5 years, 6 months ago by [sermalefico](https://wordpress.org/support/users/sermalefico/).
    -  This reply was modified 5 years, 6 months ago by [sermalefico](https://wordpress.org/support/users/sermalefico/).

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

The topic ‘Shortcode template reflow question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/e-addons-for-elementor_0c080f.svg)
 * [e-addons for Elementor](https://wordpress.org/plugins/e-addons-for-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/e-addons-for-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/e-addons-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/e-addons-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/e-addons-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/e-addons-for-elementor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [sermalefico](https://wordpress.org/support/users/sermalefico/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/shortcode-template-reflow-question/#post-13644686)
 * Status: not resolved