• Resolved jmclean

    (@jmclean)


    I am attempting to change the layout of the single sermon. I moved content-sermon-single.php in the plugins directory as well as copied it to my themes directory, even placed it in a sub folder called partials, but nothing is getting updated.

    Is this a bug, or am I missing something? I have updated content-sermon-archive.php without any issues.

    I have my site on my local machine while developing it, otherwise I’d include a link. I do have a screenshot of my file structure for my WordPress theme.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • I don’t know what theme you’re using, but I had to create a archive-wpfc_sermon.php and a single-wpfc_sermon.php file in my child theme’s folder i.e /my-theme/single-wpfc.php. Then I have my partials, or in my theme it’s called content. Hope that makes sense.

    Thought I’d clarify a few things. I used custom archive-wpfc_sermon.php and single-wpfc_sermon.php files because I wanted some extra content and I also didn’t want a sidebar. So, you really don’t need to add those unless you need them.

    Depending on your theme you may not have a partials. Looking at ‘TwentySeventeen’, they use template-parts and not partials. Some themes may not have folders so you’ll just put all of the files in the theme’s folder.

    Also I had a typo on my previous post. It should have said /my-theme/single-wpfc_sermon.php and not /my-theme/single-wpfc.php.

    Thread Starter jmclean

    (@jmclean)

    Hi Mike,

    I’m building a 100% custom theme, and this is my first time using this plugin.

    I have the exact same file structure as you mentioned, except my folder is named partials, since that’s what the comment at the top of the content-sermon-single.php says.

    This is my file structure

    /wp-content
         /themes
              /<my_theme>
                   /partials
                        /content-sermon-archive.php
                        /content-sermon-single.php // NOT WORKING
                   /archive-wpfc_sermon.php
                   /single-wpfc_sermon.php
    

    I should add that I have edited content-sermon-single.php directly in the plugin folder without any changes as well.

    • This reply was modified 5 years, 10 months ago by jmclean.
    Thread Starter jmclean

    (@jmclean)

    I have uploaded the theme to my test server and you can view it here.

    http://www.mcleanstudios.com/ccc/sermons/

    Since I don’t know what your single sermon is supposed to look, kind of hard to say what’s wrong, but it looks like it’s working.

    I assume your archive sermon is working, but not displaying the single sermon as you wanted it?

    Thread Starter jmclean

    (@jmclean)

    Yes, it’s technically “working”, however it has the default plugin layout, which I am attempting to change.

    I just now found where I can change the layout, but it’s in sm-deprecated-functions.php starting on line 193 within wpfc_sermon_single(), but that doesn’t seem like the proper place to make the layout changes.

    I really don’t know. I’m not a developer. I just know enough HTML/CSS/PHP to be dangerous…lol!

    Thread Starter jmclean

    (@jmclean)

    I just had an “aha!” moment, compared my local single-wpfc_sermon.php to the one in the plugins directory. I had somehow mixed up the functions and had the wrong one in single-wpfc_sermon.php my theme directory.

    <?php render_wpfc_sermon_single(); ?> doesn’t work properly, however <?php wpfc_sermon_single_v2(); ?> does!

    Thank you for your help!

    • This reply was modified 5 years, 10 months ago by jmclean.

    Glad to help…I think!

    BTW, Theme looks good!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Single Sermon Layout’ is closed to new replies.