mgsisk / webcomic

Comic publishing power for the web. Turn your WordPress-powered site into a comic publishing platform with Webcomic.
http://wordpress.org/plugins/webcomic
GNU General Public License v2.0
109 stars 29 forks source link

Double Web Comic #37

Closed nimbuschick closed 12 years ago

nimbuschick commented 12 years ago

I just updated my Wordpress to 3.3 and now the comic is appearing twice, once above the site, pushing the rest of my theme below. The only idea for a fix I could find on the support forums for the Webcomic Plugin was ineffective. The site is http://www.cockroachman.com

I could use a quick fix so that we don't hurt site traffic with this issue. Thanks!

mgsisk commented 12 years ago

This issue is a bit too complicated for a guaranteed fix. I've just committed an update here on Github that has a potential fix, however; please download the latest version from here (not WordPress) and see if it corrects the issue for you.

nimbuschick commented 12 years ago

Unfortunately the new webcomic.php file did not change the double-comic display. I appreciate your help.

mgsisk commented 12 years ago

As a temporary fix (that may work for the particular theme you're using) you may try commenting out line 15 in the header.php file:

<?php /* wp_get_archives('type=monthly&format=link'); */ ?>
nimbuschick commented 12 years ago

No such luck, but thank you again. I'm willing to try almost anything to get it to work.

mgsisk commented 12 years ago

Are you using the Jetpack plugin? If you are, disabling it may correct the issue.

nimbuschick commented 12 years ago

Alright. That worked. Now I need to find plugins to do all of the things Jetpack was doing for me...

mgsisk commented 12 years ago

I've heard of others having issues with Jetpack (both with Webcomic and just in general), so it might not be a bad idea. I'm still investigating what's actually going on, however.

mgsisk commented 12 years ago

I believe I've narrowed the issue down to one specific function in Jetpack: Videopress::html_head() (jetpack/modules/shortcodes/videopress.php, line 143). The problem is that Jetpack is running the standard loop in the <head> section of the site. There's no way to differentiate between that loop and the actual loop we want to prepend comics to; they are, technically, the same loop. If there's any way to disable just the VideoPress portion of Jetpack that should correct the issue, or you can comment out line 70 in that file:

<?php
add_action( 'wp_head', array( &$this, 'html_head' ), -1 ); // load before enqueue_scripts action
nimbuschick commented 12 years ago

Thanks. I think I'll just kill Jetpack altogether. This was the push I needed to use Google Analytics and my theme already has social buttons. You're my hero tonight!

mgsisk commented 12 years ago

No problem, glad I could help!

foxglove1028 commented 12 years ago

I'm actually dealing with a double header comic posting as well. I've disabled Jetpack but I'm still getting the double comic post on the same page. Is there a way to tell WebComic to use a specific template?

mgsisk commented 12 years ago

Can you provide a link to your site? There isn't a way to tell Webcomic to use a specific template with Integration, unfortunately.

foxglove1028 commented 12 years ago

Okay, the double posting goes away if you publish it with password protection. However, private and public publishing produce the double post. Here's the link: http://www.dragonrageseishi.com/archive/weeee/ On Jun 7, 2012 8:53 AM, "Michael Sisk" < reply@reply.github.com> wrote:

Can you provide a link to your site? There isn't a way to tell Webcomic to use a specific template with Integration, unfortunately.


Reply to this email directly or view it on GitHub: https://github.com/mgsisk/webcomic/issues/37#issuecomment-6175045

mgsisk commented 12 years ago

I can't really say for sure what's going on here, unfortunately, except that the issue is very likely the same as Jetpack's: something (the theme or a different plugin) is running the standard WordPress loop in the <head> portion of the site, which is triggering Webcomic's automatic integration. It looks like your theme may be custom built; without knowing what plugins you're using and having access to your site theme I'm not sure I can be of much help.

foxglove1028 commented 12 years ago

Ah okay. I did find another post on creating a template to pull in the comic with integration turned off. I'll try that. If I ever do find out why its double posting with site integration I'll let you know. Thank you for taking a look :) On Jun 7, 2012 10:28 AM, "Michael Sisk" < reply@reply.github.com> wrote:

I can't really say for sure what's going on here, unfortunately, except that the issue is very likely the same as Jetpack's: something (the theme or a different plugin) is running the standard WordPress loop in the <head> portion of the site, which is triggering Webcomic's automatic integration. It looks like your theme may be custom built; without knowing what plugins you're using and having access to your site theme I'm not sure I can be of much help.


Reply to this email directly or view it on GitHub: https://github.com/mgsisk/webcomic/issues/37#issuecomment-6177178

mgsisk commented 12 years ago

No problem; sorry I couldn't be more help!

foxglove1028 commented 12 years ago

Your plugin is still awesome. When I have some time I'll do a quick tutorial on how to make a custom page template to pull in the comic for when people don't use the integrate option.

Thank you ^^ On Jun 7, 2012 10:44 AM, "Michael Sisk" < reply@reply.github.com> wrote:

No problem; sorry I couldn't be more help!


Reply to this email directly or view it on GitHub: https://github.com/mgsisk/webcomic/issues/37#issuecomment-6177648