• 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

    (@nerdsfarm)

    Hi @sermalefico ,

    can you send us some examples? (send links to support@e-addons.com)

    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

    (@sermalefico)

    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

    (@nerdsfarm)

    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

    Thread Starter sermalefico

    (@sermalefico)

    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 3 years, 5 months ago by sermalefico.
    • This reply was modified 3 years, 5 months ago by sermalefico.
    • This reply was modified 3 years, 5 months ago by sermalefico.
    • This reply was modified 3 years, 5 months ago by sermalefico.
    • This reply was modified 3 years, 5 months ago by sermalefico.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode template reflow question’ is closed to new replies.