• I’d like to use Customizr as a base for my webcomic. Has anyone tried integrating the Comic Easel plugin into Customizr?

Viewing 15 replies - 31 through 45 (of 50 total)
  • This is what it looks like in my index.php right now:

    <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
    <div id="main-wrapper" class="<?php echo apply_filters( 'tc_main_wrapper_classes' , 'container' ) ?>">
    	<?php do_action('comic-area'); ?>
    
        <?php do_action( '__before_main_container' );

    This is what it looked like before:

    <?php do_action( '__before_main_wrapper' ); ##hook of the header with get_header ?>
    <div id="main-wrapper" class="<?php echo apply_filters( 'tc_main_wrapper_classes' , 'container' ) ?>">
    	<?php do_action('comic-area'); ?>
    	<?php do_action('comic-blog-area'); ?>
    
        <?php do_action( '__before_main_container' );

    Did I screw up originally?

    No, that means I need to look at the comic-blog-area function to make sure it’s not setting itself into the in-the-loop as well,

    okay, found it

    https://github.com/Frumph/comic-easel/commit/e0a13511dc3291d6bd386a3782998d49ce1aa4c6

    removed it, basically removed the force of the $wp_query in the loop, if you can mimic that in that file and see if it works after re-adding the blog action

    d4z_conf totally get what you’re saying now, going to remove the force of in_the_loop in those two injection areas

    file: functions/displaycomic.php
    file: functions/injections.php

    Remove this text:
    $wp_query->in_the_loop = true;

    Wherever it is found inside both of those files.

    The troubling thing about both instances of it, I have\

    wp_reset_query();

    At the end which should have reset that value as well; or you think it should have.

    Great ??
    Nope, wp_reset_query(); should reset your custom query, not the original one to which you changed a var, I think..

    Looking back (and it’s been awhile), I now remember why I created these functions:

    https://github.com/Frumph/comic-easel/blob/master/functions/library.php#L19

    to save and restore the $wp_query; totally forgot them on the comic-blog-area section but have them on the comic-area

    Ah I see so you did it before ??

    So, I followed these directions:

    file: functions/displaycomic.php
    file: functions/injections.php

    Remove this text:
    $wp_query->in_the_loop = true;

    Wherever it is found inside both of those files.

    Then I removed the comic blog widget in the customizer and re-added

    <?php do_action(‘comic-blog-area’); ?>

    to index.php. Everything looks clean, but I can’t see the blog section. Am I doing it right?

    You shouldn’t need the comic blog widget if you added the do_action(‘comic-blog-area’)

    What that function does if the theme can find add_theme_support(‘post-thumbnails’) and post-formats it should pull up the the content.php or content-comic.php file for the theme if those files are in the root of the theme.

    If they are not, you can create them yourself and put them in your child theme.

    Heading out the door can help you more in a couple hours with that.

    Nope, don’t remove this <?php do_action('comic-blog-area'); ?>
    Btw, I wouldn’t change the index.php to make that, just use actions, in your child-theme functions.php

    add_action('__before_main_container', 'add_comic_easel', 5);
    function add_comic_easel(){
        do_action('comic-area');
        do_action('comic-blog-area');
    }

    Hope this helps.

    Thanks, I didn’t know I could do that. I’d much rather do everything in the child theme.

    So d4z_c0nf I restored the index.php to the default and added your code in the child theme, and the comic shows up fine, but the blog area still doesn’t show.

    So maybe that function needs the in_the_loop forcing… mmm
    well for this Frumph can help you ??

    Cool. Meantime I’ll activate the widget again.

Viewing 15 replies - 31 through 45 (of 50 total)
  • The topic ‘Integrating comic easel plugin’ is closed to new replies.