I can't find template file for home page

Hello.

I need to add something using a shortcode, but I need to add it to my home page. For the home page, I 'm using the ‘Home Page’ template, which uses some widgets (first one is [Shapely] Parallax Section for FrontPage). So far so good.

The thing I need to add, must be added through a shortcode. I searched around and found this: add shortcode to template. It works, because I 've added the shortcode to templates, and it does work.

Now, what is the problem … I can’t find which template is being used for the “content” of that widget. The closest I could get is template-home.php, however that seems to have only three parts, the header, a sidebar section (under an if-statement to check if there is a sider) and the footer. The ‘middle’ part is missing.

Indeed, I added my shortcode (which is used to add an animated image) but I can either have it just after the header, or right at the end, right before the footer. You can see an example here: https://stopodi.rastan.gr/

where the ‘animated’ foot, comes right after the header…

Basically, what I want to do is to add the shortcode in the main widget, so that the big green foot you see now as part of the image, will be animated and will seem like it’s ‘landing’ in the image (I will take it off the image you see now). I want the big green foot, to be animated like the small one you see animated now in the top left corner. This animation can be provided with a shortcode, I just need to find the correct place to put the shortcode.

OK … sorry for the length of the message, I wanted to explain what I want … Basically, the question is, which template is responsible for creating the [Shapely] Parallax Section for FrontPage so I can inject my shortcode ???

Please help :slight_smile:

Hi,

You can simply insert the shortcode inside the content, screenshot: http://take.ms/43m95

Let us know,

Thanks,
laranz.

Thanks laranz, but this won’t help. Actually it was my fault because I didn’t explain it correctly.

The animation produces two shortcodes, think of it like a tag, and the element which will be animated (in my case, an image) must be enclosed by these two tags.

I don’t know how to do this - how to call the image as well with a tag.

In the template, I have the following code which works:

<?php echo do_shortcode('[edsanimate_start entry_animation_type= "flip" entry_delay= "1" entry_duration= "2.5" entry_timing= "linear" exit_animation_type= "bounceOutLeft" exit_delay= "5" exit_duration= "2.5" exit_timing= "linear" animation_repeat= "1" keep= "yes" animate_on= "load" scroll_offset= "" custom_css_class= "myClass2"]'); ?>
<?php
    echo wp_get_attachment_image(146, array('548', '106'));
?>
<?php echo do_shortcode('[edsanimate_end]'); ?>

basically, it is one shortcode, followed by the wp_get_attachment_image function which loads the image, followed by the ending shortcode.

The problem with this, is that in order to position it freely, I had to use position: fixed; in the css, but then it stays there forever - even when scrolling down.

If I could put all that into the content, it would be marvelous…

Otherwise, if you can tell me which is the template php file for the main content of the front page (basically the one for the parallax widget) I can copy-paste that php code there.

thanks,

t.

Hey there

Sorry for the delay
Globally, you can use this plugin https://wordpress.org/plugins/what-the-file/ if you want to know which files were used to construct page, here is the link on how to use it:
http://www.wpbeginner.com/plugins/how-to-find-which-files-to-edit-in-wordpress-theme/