• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Madara - WordPress Theme for Manga By MangaBooth

Madara - WordPress Theme for Manga By MangaBooth v1.7.4

No permission to download
Apparently he doesn't have comments on the chapters and I can't fix that

you have to go to theme editor > manga-core > manga-single-reading.php

and look for this part

<!-- END comments-area -->
</div>

and add this below

PHP:
<?php
                                        if ( $madara_single_sidebar != 'full' ) {
                                            ?>
                                            <div class="sidebar-col col-md-4 col-sm-4">
                                                <?php get_sidebar(); ?>
                                            </div>
                                        <?php }
                                    ?>

                                </div>
                            <?php } ?>

                            <?php
                                $minimal_reading_page = Madara::getOption( 'minimal_reading_page', 'off' );
                                
                                if ( $related_manga == 1 && $minimal_reading_page == 'off' ) {
                                    get_template_part( '/madara-core/manga', 'related' );
                                }

                                if ( class_exists( 'WP_Manga' ) ) {
                                    $setting = Madara::getOption('manga_single_tags_post', 'info');
                                    if($setting == 'both' || $setting == 'bottom'){
                                        $GLOBALS['wp_manga']->wp_manga_get_tags();
                                    }
                                }

                            ?>
                        </div>
                    </div>
                    <?php
                    if ( $madara_single_sidebar != 'full' && $is_text_chapter_right_sidebar ) {
                        ?>
                        <div class="sidebar-col text-sidebar col-md-4 col-sm-12">
                            <?php get_sidebar(); ?>
                            
                            <!-- comments-area -->
                            <?php
                            if($manga_reading_discussion == 'on')
                                do_action( 'wp_manga_discussion' ); ?>
                            <!-- END comments-area -->
                        </div>
                    <?php }
                    ?>

and with this i think it should work
 
Last edited:
Can anyone guide me how to add chapter search? A search bar appears before the list of chapters.
 
It's already in this post, look at page 82, it's made by user Chikimaro
look at that if that's what you mean

Thanks for the guide, I'm also using script to search for chapters, title filtering doesn't seem to work when paging chapters. Anyway that's still a good idea.
 
you have to go to theme editor > manga-core > manga-single-reading.php

and look for this part

<!-- END comments-area -->
</div>

and add this below

PHP:
<?php
                                        if ( $madara_single_sidebar != 'full' ) {
                                            ?>
                                            <div class="sidebar-col col-md-4 col-sm-4">
                                                <?php get_sidebar(); ?>
                                            </div>
                                        <?php }
                                    ?>

                                </div>
                            <?php } ?>

                            <?php
                                $minimal_reading_page = Madara::getOption( 'minimal_reading_page', 'off' );
                               
                                if ( $related_manga == 1 && $minimal_reading_page == 'off' ) {
                                    get_template_part( '/madara-core/manga', 'related' );
                                }

                                if ( class_exists( 'WP_Manga' ) ) {
                                    $setting = Madara::getOption('manga_single_tags_post', 'info');
                                    if($setting == 'both' || $setting == 'bottom'){
                                        $GLOBALS['wp_manga']->wp_manga_get_tags();
                                    }
                                }

                            ?>
                        </div>
                    </div>
                    <?php
                    if ( $madara_single_sidebar != 'full' && $is_text_chapter_right_sidebar ) {
                        ?>
                        <div class="sidebar-col text-sidebar col-md-4 col-sm-12">
                            <?php get_sidebar(); ?>
                           
                            <!-- comments-area -->
                            <?php
                            if($manga_reading_discussion == 'on')
                                do_action( 'wp_manga_discussion' ); ?>
                            <!-- END comments-area -->
                        </div>
                    <?php }
                    ?>

and with this i think it should work
Don't have this part. In manga-single-reading.php only have this

use App\Madara;

$manga_id = get_the_ID();
$reading_chapter = function_exists('madara_permalink_reading_chapter') ? madara_permalink_reading_chapter() : false;

if(!$reading_chapter){
// support Madara Core before 1.6
if($chapter_slug = get_query_var('chapter')){
global $wp_manga_functions;
$reading_chapter = $wp_manga_functions->get_chapter_by_slug( $manga_id, $chapter_slug );
}

if(!$reading_chapter){
global $wp_query;
$wp_query->set_404();
status_header( 404 );
get_template_part( 404 ); exit();
}
}

$cur_chap = $reading_chapter['chapter_slug'];

$wp_manga = madara_get_global_wp_manga();
$wp_manga_functions = madara_get_global_wp_manga_functions();


$style = isset( $_GET['style'] ) ? $_GET['style'] : $wp_manga_functions->get_reading_style();

$wp_manga_settings = get_option( 'wp_manga_settings' );
$related_manga = isset( $wp_manga_settings['related_manga'] ) ? $wp_manga_settings['related_manga'] : null;
if($related_manga == 1){
$related_manga = Madara::getOption( 'manga_reading_related', 'on' ) == 'on' ? 1 : 0;
}
$madara_single_sidebar = madara_get_theme_sidebar_setting();
$madara_breadcrumb = Madara::getOption( 'manga_single_breadcrumb', 'on' );
$manga_reading_discussion = Madara::getOption( 'manga_reading_discussion', 'on' );
$manga_reading_social_share = Madara::getOption( 'manga_reading_social_share', 'off' );

$chapter_type = get_post_meta( $manga_id, '_wp_manga_chapter_type', true );
$is_text_chapter_right_sidebar = ($madara_single_sidebar != 'full' && $chapter_type == 'text' && Madara::getOption( 'manga_reading_text_sidebar', 'on' ) == 'on') ? true : false;

if ( $madara_single_sidebar == 'full' || $is_text_chapter_right_sidebar ) {
$main_col_class = 'sidebar-hidden col-12 col-sm-12 col-md-12 col-lg-12';
} else {
$main_col_class = 'main-col col-12 col-sm-8 col-md-8 col-lg-8';
}

get_header();

?>
<div class="c-page-content style-1 reading-content-wrap chapter-type-<?php echo esc_attr($chapter_type == '' ? 'manga' : $chapter_type);?>" data-site-url="<?php echo home_url( '/' ); ?>">
<div class="content-area">
<div class="container">
<div class="row">
<div class="main-col <?php echo esc_attr($is_text_chapter_right_sidebar ? "col-md-8" : "col-md-12");?> col-sm-12 sidebar-hidden">

<h1 id="chapter-heading">
<a class="back" href="<?php echo get_permalink($manga_id);?>"><i class="fa fa-chevron-left"></i></a>
<?php echo esc_html($reading_chapter['chapter_name']);?>
<a href="#" id="view-chapters"><span class="chapters"><i class="fa fa-bars" aria-hidden="true"></i></span></a>
<a class="home" href="<?php echo site_url("/");?>"><i class="fa fa-home"></i></a>
</h1>

<!-- container & no-sidebar-->
<div class="main-col-inner">
<div class="c-blog-post">
<div class="entry-header header" id="manga-reading-nav-head" data-position="header" data-chapter="<?php echo esc_attr($cur_chap);?>" data-id="<?php echo esc_attr(get_the_ID());?>"><?php $wp_manga->manga_nav( 'header' ); ?></div>
<div class="entry-content">
<div class="entry-content_wrap">

<div class="read-container">

<?php echo apply_filters( 'madara_ads_before_content', madara_ads_position( 'ads_before_content', 'body-top-ads' ) ); ?>

<div class="reading-content">
<input type="hidden" id="wp-manga-current-chap" data-id="<?php echo esc_attr($reading_chapter['chapter_id']);?>" value="<?php echo esc_attr($cur_chap);?>"/>
<?php

global $post;

if( !$post->post_password || ($post->post_password && !post_password_required()) ){

/**
* If alternative_content is empty, show default content
**/
$alternative_content = apply_filters('wp_manga_chapter_content_alternative', '');

if(!$alternative_content){
do_action('wp_manga_before_chapter_content', $cur_chap, $manga_id);

do_action('wp_manga_chapter_content', $cur_chap, $manga_id);

do_action('wp_manga_after_chapter_content', $cur_chap, $manga_id);
} else {
echo madara_filter_content($alternative_content);
}

} else {
// show the password form
the_content();
}

?>

</div>


<?php echo apply_filters( 'madara_ads_after_content', madara_ads_position( 'ads_after_content', 'body-bottom-ads' ) ); ?>

</div>


</div>
</div>
<div class="entry-header footer" id="manga-reading-nav-foot" data-position="footer" data-id="<?php echo esc_attr(get_the_ID());?>"><?php $wp_manga->manga_nav( 'footer' ); ?></div>
</div>

<?php if ( class_exists( 'APSS_Class' ) && $manga_reading_social_share == 'on' ) {

$madara_sharing_text = apply_filters( 'manga_reading_sharing_text', esc_html__( 'SHARE THIS MANGA', 'madara-tp' ) );
$madara_sharing_networks = 'facebook, twitter, google-plus, pinterest, linkedin, digg';
$madara_sharing_networks = apply_filters( 'manga_reading_sharing_networkds', $madara_sharing_networks );
echo do_shortcode( "[apss_share share_text='$madara_sharing_text' networks='$madara_sharing_networks' counter='1' total_counter='1' http_count='1']" );

} ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php do_action( 'after_manga_single' ); ?>
<?php

get_footer();
?>
<div id="manga-chapters-sidebar">
<?php do_action('wp-manga-chapter-listing', $manga_id); ?>
</div>
 
Don't have this part. In manga-single-reading.php only have this

use App\Madara;

Code:
    $manga_id  = get_the_ID();
    $reading_chapter = function_exists('madara_permalink_reading_chapter') ? madara_permalink_reading_chapter() : false;
  
    if(!$reading_chapter){
         // support Madara Core before 1.6
         if($chapter_slug = get_query_var('chapter')){
            global $wp_manga_functions;
            $reading_chapter = $wp_manga_functions->get_chapter_by_slug( $manga_id, $chapter_slug );
         }
       
         if(!$reading_chapter){
            global $wp_query;
            $wp_query->set_404();
            status_header( 404 );
            get_template_part( 404 ); exit();
         }
    }

    $cur_chap = $reading_chapter['chapter_slug'];

    $wp_manga           = madara_get_global_wp_manga();
    $wp_manga_functions = madara_get_global_wp_manga_functions();
  

    $style    = isset( $_GET['style'] ) ? $_GET['style'] : $wp_manga_functions->get_reading_style();

    $wp_manga_settings = get_option( 'wp_manga_settings' );
    $related_manga     = isset( $wp_manga_settings['related_manga'] ) ? $wp_manga_settings['related_manga'] : null;
    if($related_manga == 1){
        $related_manga = Madara::getOption( 'manga_reading_related', 'on' ) == 'on' ? 1 : 0;
    }
    $madara_single_sidebar      = madara_get_theme_sidebar_setting();
    $madara_breadcrumb          = Madara::getOption( 'manga_single_breadcrumb', 'on' );
    $manga_reading_discussion   = Madara::getOption( 'manga_reading_discussion', 'on' );
    $manga_reading_social_share = Madara::getOption( 'manga_reading_social_share', 'off' );
  
    $chapter_type = get_post_meta( $manga_id, '_wp_manga_chapter_type', true );
    $is_text_chapter_right_sidebar = ($madara_single_sidebar != 'full' && $chapter_type == 'text' && Madara::getOption( 'manga_reading_text_sidebar', 'on' ) == 'on') ? true : false;
  
    if ( $madara_single_sidebar == 'full' || $is_text_chapter_right_sidebar ) {
        $main_col_class = 'sidebar-hidden col-12 col-sm-12 col-md-12 col-lg-12';
    } else {
        $main_col_class = 'main-col col-12 col-sm-8 col-md-8 col-lg-8';
    }
  
    get_header();

?>
    <div class="c-page-content style-1 reading-content-wrap chapter-type-<?php echo esc_attr($chapter_type == '' ? 'manga' : $chapter_type);?>" data-site-url="<?php echo home_url( '/' ); ?>">
        <div class="content-area">
            <div class="container">
                <div class="row">
                    <div class="main-col <?php echo esc_attr($is_text_chapter_right_sidebar ? "col-md-8" : "col-md-12");?> col-sm-12 sidebar-hidden">
                      
                        <h1 id="chapter-heading">
                            <a class="back" href="<?php echo get_permalink($manga_id);?>"><i class="fa fa-chevron-left"></i></a>
                            <?php echo esc_html($reading_chapter['chapter_name']);?>
                            <a href="#" id="view-chapters"><span class="chapters"><i class="fa fa-bars" aria-hidden="true"></i></span></a>
                            <a class="home" href="<?php echo site_url("/");?>"><i class="fa fa-home"></i></a>
                        </h1>
                      
                        <!-- container & no-sidebar-->
                        <div class="main-col-inner">
                            <div class="c-blog-post">
                                <div class="entry-header header" id="manga-reading-nav-head" data-position="header" data-chapter="<?php echo esc_attr($cur_chap);?>" data-id="<?php echo esc_attr(get_the_ID());?>"><?php $wp_manga->manga_nav( 'header' ); ?></div>
                                <div class="entry-content">
                                    <div class="entry-content_wrap">

                                        <div class="read-container">

                                            <?php echo apply_filters( 'madara_ads_before_content', madara_ads_position( 'ads_before_content', 'body-top-ads' ) ); ?>
                                          
                                            <div class="reading-content">
                                                <input type="hidden" id="wp-manga-current-chap" data-id="<?php echo esc_attr($reading_chapter['chapter_id']);?>" value="<?php echo esc_attr($cur_chap);?>"/>
                                                <?php
                                              
                                                global $post;
                                              
                                                if( !$post->post_password || ($post->post_password && !post_password_required()) ){
                                              
                                                    /**
                                                     * If alternative_content is empty, show default content
                                                     **/
                                                    $alternative_content = apply_filters('wp_manga_chapter_content_alternative', '');
                                                  
                                                    if(!$alternative_content){
                                                        do_action('wp_manga_before_chapter_content', $cur_chap, $manga_id);
                                                      
                                                        do_action('wp_manga_chapter_content', $cur_chap, $manga_id);
                                                      
                                                        do_action('wp_manga_after_chapter_content', $cur_chap, $manga_id);
                                                    } else {
                                                        echo madara_filter_content($alternative_content);
                                                    }
                                              
                                                } else {
                                                    // show the password form
                                                    the_content();
                                                }
                                              
                                                ?>

                                            </div>
                                      

                                            <?php echo apply_filters( 'madara_ads_after_content', madara_ads_position( 'ads_after_content', 'body-bottom-ads' ) ); ?>

                                        </div>


                                    </div>
                                </div>
                                <div class="entry-header footer" id="manga-reading-nav-foot" data-position="footer" data-id="<?php echo esc_attr(get_the_ID());?>"><?php $wp_manga->manga_nav( 'footer' ); ?></div>
                            </div>

                            <?php if ( class_exists( 'APSS_Class' ) && $manga_reading_social_share == 'on' ) {

                                $madara_sharing_text     = apply_filters( 'manga_reading_sharing_text', esc_html__( 'SHARE THIS MANGA', 'madara-tp' ) );
                                $madara_sharing_networks = 'facebook, twitter, google-plus, pinterest, linkedin, digg';
                                $madara_sharing_networks = apply_filters( 'manga_reading_sharing_networkds', $madara_sharing_networks );
                                echo do_shortcode( "[apss_share share_text='$madara_sharing_text' networks='$madara_sharing_networks' counter='1' total_counter='1' http_count='1']" );

                            } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php do_action( 'after_manga_single' ); ?>
<?php
    
    get_footer();
?>
<div id="manga-chapters-sidebar">
<?php do_action('wp-manga-chapter-listing', $manga_id); ?>
</div>
look for this part that is at the end

PHP:
                                $madara_sharing_text     = apply_filters( 'manga_reading_sharing_text', esc_html__( 'SHARE THIS MANGA', 'madara-tp' ) );

                                $madara_sharing_networks = 'facebook, twitter, google-plus, pinterest, linkedin, digg';

                                $madara_sharing_networks = apply_filters( 'manga_reading_sharing_networkds', $madara_sharing_networks );

                                echo do_shortcode( "[apss_share share_text='$madara_sharing_text' networks='$madara_sharing_networks' counter='1' total_counter='1' http_count='1']" );



                            } ?>

add this below

PHP:
<?php if ( $manga_reading_discussion == 'on' && !$is_text_chapter_right_sidebar ) { ?>
                                <div class="row <?php echo esc_attr( $madara_single_sidebar == 'left' ? 'sidebar-left' : ''); ?>">
                                    <div class="<?php echo esc_attr( $main_col_class ); ?>">
                                        <!-- comments-area -->
                                        <?php do_action( 'wp_manga_discussion' ); ?>
                                        <!-- END comments-area -->
                                    </div>

                                    <?php
                                        if ( $madara_single_sidebar != 'full' ) {
                                            ?>
                                            <div class="sidebar-col col-md-4 col-sm-4">
                                                <?php get_sidebar(); ?>
                                            </div>
                                        <?php }
                                    ?>

                                </div>
                            <?php } ?>

                            <?php
                                $minimal_reading_page = Madara::getOption( 'minimal_reading_page', 'off' );
                               
                                if ( $related_manga == 1 && $minimal_reading_page == 'off' ) {
                                    get_template_part( '/madara-core/manga', 'related' );
                                }

                                if ( class_exists( 'WP_Manga' ) ) {
                                    $setting = Madara::getOption('manga_single_tags_post', 'info');
                                    if($setting == 'both' || $setting == 'bottom'){
                                        $GLOBALS['wp_manga']->wp_manga_get_tags();
                                    }
                                }

                            ?>
                        </div>
                    </div>
                    <?php
                    if ( $madara_single_sidebar != 'full' && $is_text_chapter_right_sidebar ) {
                        ?>
                        <div class="sidebar-col text-sidebar col-md-4 col-sm-12">
                            <?php get_sidebar(); ?>
                           
                            <!-- comments-area -->
                            <?php
                            if($manga_reading_discussion == 'on')
                                do_action( 'wp_manga_discussion' ); ?>
                            <!-- END comments-area -->
                        </div>
                    <?php }
                    ?>

let me know if it worked for you
 
Last edited:
  • Love
Reactions: Tiauvinha
look for this part that is at the end

PHP:
                                $madara_sharing_text     = apply_filters( 'manga_reading_sharing_text', esc_html__( 'SHARE THIS MANGA', 'madara-tp' ) );

                                $madara_sharing_networks = 'facebook, twitter, google-plus, pinterest, linkedin, digg';

                                $madara_sharing_networks = apply_filters( 'manga_reading_sharing_networkds', $madara_sharing_networks );

                                echo do_shortcode( "[apss_share share_text='$madara_sharing_text' networks='$madara_sharing_networks' counter='1' total_counter='1' http_count='1']" );



                            } ?>

add this below

PHP:
<?php if ( $manga_reading_discussion == 'on' && !$is_text_chapter_right_sidebar ) { ?>
                                <div class="row <?php echo esc_attr( $madara_single_sidebar == 'left' ? 'sidebar-left' : ''); ?>">
                                    <div class="<?php echo esc_attr( $main_col_class ); ?>">
                                        <!-- comments-area -->
                                        <?php do_action( 'wp_manga_discussion' ); ?>
                                        <!-- END comments-area -->
                                    </div>

                                    <?php
                                        if ( $madara_single_sidebar != 'full' ) {
                                            ?>
                                            <div class="sidebar-col col-md-4 col-sm-4">
                                                <?php get_sidebar(); ?>
                                            </div>
                                        <?php }
                                    ?>

                                </div>
                            <?php } ?>

                            <?php
                                $minimal_reading_page = Madara::getOption( 'minimal_reading_page', 'off' );
                              
                                if ( $related_manga == 1 && $minimal_reading_page == 'off' ) {
                                    get_template_part( '/madara-core/manga', 'related' );
                                }

                                if ( class_exists( 'WP_Manga' ) ) {
                                    $setting = Madara::getOption('manga_single_tags_post', 'info');
                                    if($setting == 'both' || $setting == 'bottom'){
                                        $GLOBALS['wp_manga']->wp_manga_get_tags();
                                    }
                                }

                            ?>
                        </div>
                    </div>
                    <?php
                    if ( $madara_single_sidebar != 'full' && $is_text_chapter_right_sidebar ) {
                        ?>
                        <div class="sidebar-col text-sidebar col-md-4 col-sm-12">
                            <?php get_sidebar(); ?>
                          
                            <!-- comments-area -->
                            <?php
                            if($manga_reading_discussion == 'on')
                                do_action( 'wp_manga_discussion' ); ?>
                            <!-- END comments-area -->
                        </div>
                    <?php }
                    ?>

let me know if it worked for you
Uouuu, thx, i fixed
 
  • Like
Reactions: HypnosWp
Hello everyone at this time, I have added a plugin to download the mangas on my site, but I have this problem, the icon is completely shifted (see image) you would like to fix this?
1680356623360.png
 
Hello everyone at this time, I have added a plugin to download the mangas on my site, but I have this problem, the icon is completely shifted (see image) you would like to fix this?
1680356623360.png
i think you have to add more css for this
 
1680496262493.png
Hello, Looks like the theme madara often has an error Notify when there is a new chapter. My website has been inactive for quite some time. Please guide me how to make it work properly
 
1680496262493.png
Hello, Looks like the theme madara often has an error Notify when there is a new chapter. My website has been inactive for quite some time. Please guide me how to make it work properly
I think it's a bug of Madara, old versions don't have this, onesignal too
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock