Manga+Press Documentation
  • Introduction
  • Guides
    • Frequently Asked Questions
    • Contributing
  • Getting Started
    • Installation
    • Configuring Manga+Press
    • Using Manga+Press
    • Theme Customization
  • Developer API
    • Image Sizes
  • Template Tags
    • Conditional Tags
    • mangapress_comic_navigation
    • mangapress_get_calendar
    • mangapress_theme_supports_cover_images
    • mangapress_has_cover_image
    • mangapress_the_comic_cover
  • Functions
    • mangapress_comic_navigation
    • mangapress_day_link
    • mangapress_end_latest_comic
    • mangapress_get_calendar
    • mangapress_get_next_post_in_loop
    • mangapress_get_previous_post_in_loop
    • mangapress_month_link
    • mangapress_start_latest_comic
  • Filters
    • Manga+Press Template API — Filters
    • mangapress_archive_gallery_style
    • mangapress_options_fields
    • mangapress_comic_front_slug
    • mangapress_options_sections
    • mangapress_comic_navigation_args
    • mangapress_comic_navigation_items
    • mangapress_get_adjacent_comic_args
    • mangapress_get_boundary_comic_args
    • mangapress_archive_gallery_style
    • mangapress_comic_front_slug
    • mangapress_options_fields
  • Actions
    • Manga+Press Template API — Actions
    • save_post_mangapress_comic
    • mangapress_comic_page_content
    • mangapress_theme_compatible-$theme
Powered by GitBook
On this page
  • mangapress_archive_gallery_style
  • Parameters
  • Usage
  1. Filters

mangapress_archive_gallery_style

mangapress_archive_gallery_style

Filter for modifying default embedded CSS stylesheet for the Archive Gallery.

Parameters

  • $styles (array)(optional) Embedded CSS stylesheet string used to override defaults.

Usage

<?php
/**
 * Disable the default Manga+Press gallery styles
 */
function myplugin_disable_gallery_styles($styles)
{
    return '';
}
add_filter('mangapress_archive_gallery_style', 'myplugin_disable_gallery_styles');
?>

Default CSS styles (use in your own stylesheet):

.mangapress-archive-gallery {
     font-size: 0;
}

.mangapress-archive-gallery > li {
    text-align: center;
    width: 125px;
    min-height: 200px;
    font-size: 12px;
    list-style: none;
    margin: 10px;
    float: left;
}

.mangapress-archive-gallery > li:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
}

.comic-title-caption,
.comic-post-date {
    text-align: center;
    margin: 0;
    padding: 0;
}

.comic-title-caption {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
PreviousManga+Press Template API — FiltersNextmangapress_options_fields

Last updated 6 years ago