• Resolved dtune83

    (@dtune83)


    Hey Guys,
    Just wanted to see if you had a quick HOW-TO or a good walkthrough link on how to copy the files I wanted to edit over to my current theme’s main directory (child-theme director??) so my changes aren’t overwritten? I’ve never edited a plugin’s files before so Im not sure where to move these files to and if there are any extra coding hooks needed or is it the same as moving main theme files to a child-theme?

    Any info would be greatly appreciated. Love the Plugin!!

Viewing 1 replies (of 1 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Howdy @dtune83,

    Great question.

    The short answer is that using FTP, SSH, or your hosting account’s file manager (assuming you’re not working locally), you’ll copy the file posts_loop_template.php from /wp-content/plugins/posts-in-page/ to /wp-content/themes/your-theme-slug-goes-here/.

    Once that file exists in your active theme’s main directory, it will automatically be used to format posts generated by the plugin. And, it won’t be overwritten by ANY updates to the plugin.

    Advanced
    If you want to get really slick, you can not only move this file to your theme but also rename it. This is great if you’re using it in several places and want to show different output for each place.

    If you do rename the file, make sure to indicate that in the shortcode using the template='template_name.php'.

    I hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘Correct way to copy plugin files to main theme/child theme to edit’ is closed to new replies.