Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mike

    (@mgsisk)

    Hi Lucie-f! The following should get Webcomic off the front page while using Integrate:

    1. Copy /wp-content/plugins/webcomic/php/integrate/loop_start.php into /wp-content/themes/YOURTHEME/webcomic/loop_start.php, where YOURTHEME is the folder of your current theme.
    2. Open up /wp-content/themes/YOURTHEME/webcomic/loop_start.php and remove everything between lines 35 – <?php if ( is_front_page() ) : ?> and 76 – <?php elseif ( is_webcomic() ) : ?>. The exact line numbers may be off a bit, but it should be near the top of the file.

    Hey, I’ve got the exact same problem. But when I open up /wp-content/themes/panel, there is no webcomic folder, or even folders available for plugins of any kind.

    Would it make a difference that my site is hosted by Godaddy? Would it have the same effect if I modified the original loop_start.php? There is also a front_page.php in the themes/panel/ folder, would there be a way to solve the problem in there?

    Plugin Author Mike

    (@mgsisk)

    Apologies ThesaurusRex84 and lucie-f; I should have explained a bit more. Webcomic’s Integrate feature uses a set of template files found in /wp-content/plugins/webcomic/php/integrate to add Webcomic features to an otherwise Webcomic-unaware theme. You can edit the original template files to customize the Integrate feature, but those files will be overwritten every time Webcomic updates (which – admittedly – hasn’t happened in awhile… ^_^;).

    The recommended way to do this is to copy the template files you’d like to modify into a /webcomic folder in your current theme directory and edit those. The /webcomic directory in your theme is actually a special folder that Webcomic uses for custom templates; Inkblot is probably the only theme that actually comes with such a folder because it’s the only one that’s Webcomic-aware.

    For other themes, you can just make a /webcomic directory and throw your Webcomic-specific templates – like loop_start.php – in there. Webcomic knows to check /wp-content/themes/YOURTHEME/webcomic for template files before it grabs the built-in templates, so your modified template will override the built in one automatically.

    Oh, that’s really cool!

    It ‘works’ in the sense that it registered what I was trying to do, but I think I messed up really bad somewhere. The whole website gives an ‘unexpected ELSEIF in line 35’ syntax error.

    Here’s the .php I modified: https://pastebin.com/7Af8fXnB

    Plugin Author Mike

    (@mgsisk)

    Ah, yes; you removed one too many lines. Try adding this on line 34, just above <?php elseif ( is_webcomic() ) : ?>:

    <?php if ( is_front_page() ) : ?>

    That did it! I feel so elated right now!

    The problem is still holding on by a thread right now (and it’s probably my error again) — it’s now showing ‘elseif ( is_webcomic() ) : ?>:’ above the home page.

    Here’s my temporary webpage: https://5d4.713.myftpupload.com/

    And the new modified php: https://pastebin.com/VckfR4Hs

    I’m betting the solution’s probably simple…I’m just totally PHP illiterate, as you can see ??

    Thread Starter lucie-f

    (@lucie-f)

    Thank you so much, it worked perfectly !

    Hi, just letting you know I still (unfortunately ?? ) have the problem of the bit of PHP showing up at the front page, still have no idea how to fix it.

    Thanks a whole bunch for taking the time to help, by the way. I really needed it and I really appreciate it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove the integration on front page’ is closed to new replies.