24/7 PRAYER FOR JAPAN 日本のための祈りをつなげよう
24/7 PRAYER FOR JAPAN 日本のための祈りをつなげよう

Starter

All Custom CSS (Oxygen Starter)

/* BUTTON ------------*/
.ct-link-button {
    background-color: color(5);
    border: 1px solid color(5);
    padding: 12px 18px;
	line-height: 1.2;
}
.wp-block-button__link	{
    background: color(5);
    border: 1px solid color(5);
    padding: 12px 18px;
	border-radius: 3px;
	margin-bottom: 10px;
	font-size: 0.99rem;
	line-height: 1.2;
}
.wp-block-button__link:hover	{
    background: color(6);
    border: 1px solid color(6);
}

/* Custom Links ------------*/
.blacklink a	{
  color:#303746;
}
.blacklink a:hover	{
  color: color(6);
}
.whitelink a	{
  color:#fff;
}
.whitelink a:hover	{
  color: color(6);
}

/* WP IMAGES ------------*/
figure {
    margin: 1em 0px;
}
figcaption {
    text-align: center;
    font-size: 90%;
    color: #6d7587;
    line-height: 1.4;
}
.alignnone      {
    max-width: 100%!important;
    width: 100%!important;
    height: auto!important;
}
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}
.alignright {
    float: right;
    margin: 0 0 20px 20px;
}
.wp-caption {
    max-width: 100%;
    height: auto;
}
.wp-caption  {
	margin-bottom: 0px;
}
.wp-caption-text        {
    text-align: center;
    font-size: 85%;
    color: #838a94;
    line-height: 1.4;
    margin-top: 6px;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
}
.oxy-stock-content-styles img, .ct-inner-content img {
  max-width: 100%;
  height: auto;
}
.ct-image	{
	magrin-bottom: 20px;
}
.wp-block-gallery	{
	padding: 20px 0;
}

/* MENU ------------*/
.oxy-pro-menu-off-canvas-container > div:first-child {
    margin-top: 0;
    padding-top: 80px;
}
#-pro-menu-8-6 .oxy-pro-menu-container:not(.oxy-pro-menu-open-container):not(.oxy-pro-menu-off-canvas-container) .sub-menu .menu-item a {
    width: 220px;
}
.oxy-pro-menu .sub-menu li.menu-item {
    white-space: break-spaces;
}
.oxy-pro-menu-container.oxy-pro-menu-off-canvas-container {
    box-shadow: 0 0 100px 0 rgb(0, 0, 0, 0.3);
}

/* PAGINATION ------------*/
.oxy-repeater-pages-wrap {
  grid-column: 1 / -1;
}
.oxy-easy-posts-pages .page-numbers	{
	border: 1px solid color(7);
  	padding: 10px 18px;
}
.oxy-easy-posts-pages .page-numbers:hover	{
  	background-color:color(8);
}
.oxy-easy-posts-pages .current	{
  	background-color:color(8);
}

/* Gutenberg Width Image -------*/
.alignwide {
	margin-left  : -200px;
	margin-right : -200px;
	padding: 20px 0;
}
.alignfull {
	margin-left  : calc( -100vw / 2 + 100% / 2 );
	margin-right : calc( -100vw / 2 + 100% / 2 );
	max-width    : 100vw;
	padding: 20px 0;
}
.alignfull img {
	width: 100vw;
}

/* RESPONSIVE -------------------------------*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px){
.alignwide {
	margin-left  : calc( -100vw / 2 + 100% / 2 );
	margin-right : calc( -100vw / 2 + 100% / 2 );
	max-width    : 100vw;
	padding: 10px 0;
}
.alignfull {
	padding: 10px 0;
}
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px){
.sub-menu	{
	font-size: 90%;
}

}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px){
h1 {
    font-size: 30px;
}
h2 {
    font-size: 26px;
}
h3 {
    font-size: 22px;
}
.ct-section-inner-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}
.oxy-repeater-pages a {
  padding-top: 5px!important;
  padding-left: 10px!important;
  padding-right: 10px!important;
  padding-bottom: 5px!important;
  margin-right: 2px!important;
}
.oxy-repeater-pages span.current {
  padding-top: 5px!important;
  padding-left: 10px!important;
  padding-right: 10px!important;
  padding-bottom: 5px!important;
  margin-right: 2px!important;
}
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px){
.ct-section-inner-wrap {
    padding-top: 30px;
    padding-bottom: 30px;
}
.wp-block-image .alignright,
.wp-block-image .alignleft {
    margin: 0;
}
.alignright	{
    margin: 0 0 0 20px;
}
}

Custom CSS (OxyStart)

p	{
  margin: 0 0 20px 0;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px 0;
}
.blacklink a	{
	color: color(3);
}
.blacklink a:hover	{
	color: color(6);
}
.narrow-width	{
	max-width: 850px;
	margin-left: auto;
	margin-right: auto;
}
a {
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}
p	{
  margin: 0 0 20px 0;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px 0;
}
audio {
  width:100%!important;
}
blockquote	{
	font-size: 120%;
	margin: 30px 0;
	padding: 30px;
	background: color(8);
	border-left: 5px solid color(5);
}
.wp-block-quote.is-large, .wp-block-quote.is-style-large {
    margin-bottom: 30px;
    padding: 30px;
}
cite	{
	font-size: 80%;
}

/* MENU --------------*/
.oxy-pro-menu .oxy-pro-menu-mobile-close-icon {
    left: 80%;
}
#-pro-menu-8-6 .oxy-pro-menu-open-container .oxy-pro-menu-list .menu-item-has-children .oxy-pro-menu-dropdown-icon-click-area, #-pro-menu-8-6 .oxy-pro-menu-off-canvas-container .oxy-pro-menu-list .menu-item-has-children .oxy-pro-menu-dropdown-icon-click-area {
    margin-right: 4px;
    right: 0;
    position: absolute;
}
#-pro-menu-8-6 .oxy-pro-menu-container:not(.oxy-pro-menu-open-container):not(.oxy-pro-menu-off-canvas-container) .sub-menu {
    background: #fff;
    padding: 15px 0;
}

/* BUTTON ------------*/
.ct-link-button {
    background-color: color(6);
    border: 1px solid color(6);
    padding: 8px 18px;
}
.wp-block-button__link	{
    background: color(6);
    border: 1px solid color(6);
    padding: 8px 18px;
	border-radius: 3px;
	margin-bottom: 10px;
	font-size: 0.99rem;
}
.wp-block-button__link:hover	{
    background: color(7);
    border: 1px solid color(7);
}
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline {
    color: color(5)!important;
	border: 2px solid color(5);
    padding: 11px 18px;
	line-height: 1.2;
}
.is-style-outline > .wp-block-button__link:hover, .wp-block-button__link.is-style-outline:hover {
    color: #fff!important;
	border: 2px solid color(5);
    background: color(5)!important;
}
/* WP IMAGES ------------*/
figure {
    margin: 1em 0px;
}
figcaption {
    text-align: center;
    font-size: 90%;
    color: #6d7587;
    line-height: 1.4;
}
.oxy-stock-content-styles img, .ct-inner-content img {
  height: auto;
}
/* MENU ------------*/
.oxy-pro-menu-off-canvas-container > div:first-child {
    margin-top: 0;
    padding-top: 80px;
}
.oxy-pro-menu .oxy-pro-menu-mobile-close-icon {
    left: 80%;
}
.oxy-pro-menu-container.oxy-pro-menu-off-canvas-container {
    box-shadow: 0 0 100px 0 rgb(0, 0, 0, 0.2);
}
#-pro-menu-7-31 .oxy-pro-menu-container:not(.oxy-pro-menu-open-container):not(.oxy-pro-menu-off-canvas-container) .sub-menu .menu-item a {
    width: 220px;
}
.oxy-pro-menu .sub-menu li.menu-item {
    white-space: break-spaces;
}

/* FORMINATOR ------------*/
.forminator-button  {
  background-color: color(5)!important;
  padding: 12px 20px!important;
  border-radius: 3px!important;
}
.forminator-button:hover  {
  background-color: color(6)!important;
  box-shadow: none!important;
}
.forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid="open"] .forminator-row:not(:last-child) {
    margin-bottom: 20px!important;
}

/* SLIDER ------------*/
.unslider-arrow {
    border-radius: 4px!important;
    height: 40px!important;
    width: 40px!important;
    top: 50%;
    transition: opacity 0.2s ease 0s;
}
#slider-32-16 .unslider-arrow {
    background-color: rgba(255,255,255,0.3)!important;
}

/* BREADCRUMBS ------------*/
#breadcrumbs{
  list-style:none;
  margin:10px 0;
  overflow:hidden;
}
#s	{
  width: 80%;
}
#breadcrumbs li{
  display:inline-block;
  vertical-align:middle;
  margin-right:8px;
  color:#fff;
  font-weight: 400;
}
#breadcrumbs .separator{
    font-size:12px;
    color:#fff;
}
#breadcrumbs a	{
  color:#fff!important;
}

/* SOCIAL SHARE ------------*/
.heateorSssMoreBackground	{
  display: none;
}

/* COMMENT ------------*/
.oxy-comment-form label {
    font-weight: 400;
}
.comment-form-url,
.comment-form-cookies-consent	{
	display: none;
}
.oxy-comments .comment-meta .comment-author .avatar {
    max-width: 40px;
    max-height: 40px;
	display: none;
}
.oxy-comments li.comment .comment-body {
    margin-bottom: 30px;
}
.oxy-comment-form #submit {
    padding: 1em 2em;
    font-weight: 400;
	width: 180px;
	border-radius: 4px!important;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}
.oxy-comment-form #submit:hover {
	background: color(6)!important;
}
.reply	{
	margin-top: -10px;
}
.reply a	{
	border: 1px solid color(7);
	padding: 2px 10px;
	border-radius: 30px;
	color: color(4);
}
.reply a:hover	{
	background: color(8)
}

/* RESPONSIVE -------------------------------*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px){
 
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px){
 
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px){
h1 {
    font-size: 30px;
}
h2 {
    font-size: 26px;
}
h3 {
    font-size: 22px;
}
.ct-section-inner-wrap {
    padding-top: 30px;
    padding-bottom: 30px;
}
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px){
.wp-block-image .alignright,
.wp-block-image .alignleft {
    margin: 0;
}	
#_search_form-18-6 input[type="submit"] {
    background-color: #3675ff;
    width: 80%;
	margin-top: 5px
}
.unslider-arrow {
    height: 20px!important;
    width: 20px!important;
}
#slider-32-16 .unslider-arrow {
    background-color: rgba(255,255,255,0.0)!important;
}
}

Plugin

Snippets

Disable Admin Bar

add_filter('show_admin_bar', '__return_false');

Excerpts Limit

add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
/**
 * Change the length of excerpt.
 *
 * @param int $length The number of words. Default 55.
 * @return int New excerpt length.
 */
function custom_excerpt_length( $length ) {
    return 14; // number of words. Default is 55.
}
function new_excerpt_more( $more ) {
    return '...';
}
add_filter('excerpt_more', 'new_excerpt_more');

Hide Category Name

add_filter( 'get_the_archive_title', 'my_theme_archive_title' );
/**
 * Remove archive labels.
 * 
 * @param  string $title Current archive title to be displayed.
 * @return string        Modified archive title to be displayed.
 */
function my_theme_archive_title( $title ) {
    if ( is_category() ) {
        $title = single_cat_title( '', false );
    } elseif ( is_tag() ) {
        $title = single_tag_title( '', false );
    } elseif ( is_author() ) {
        $title = '<span class="vcard">' . get_the_author() . '</span>';
    } elseif ( is_post_type_archive() ) {
        $title = post_type_archive_title( '', false );
    } elseif ( is_tax() ) {
        $title = single_term_title( '', false );
    }
 
    return $title;
}

Gutenberg Full width & Width Layout

/**
 * Register support for Gutenberg wide images in your theme
 */
function mytheme_setup() {
  add_theme_support( 'align-wide' );
}
add_action( 'after_setup_theme', 'mytheme_setup' );

Breadcrumbs

// Breadcrumbs
function custom_breadcrumbs() {
       
    // Settings
		$separator          = '>';
    $breadcrums_id      = 'breadcrumbs';
    $breadcrums_class   = 'breadcrumbs';
    $home_title         = 'Home';
      
    // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat)
    $custom_taxonomy    = 'product_cat';
       
    // Get the query & post information
    global $post,$wp_query;
       
    // Do not display on the homepage
    if ( !is_front_page() ) {
       
        // Build the breadcrums
        echo '<ul id="' . $breadcrums_id . '" class="' . $breadcrums_class . '">';
           
        // Home page
        echo '<li class="item-home"><a class="bread-link bread-home" href="' . get_home_url() . '" title="' . $home_title . '">' . $home_title . '</a></li>';
        echo '<li class="separator separator-home"> ' . $separator . ' </li>';
           
        if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) {
              
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . post_type_archive_title($prefix, false) . '</strong></li>';
              
        } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {
              
            // If post is a custom post type
            $post_type = get_post_type();
              
            // If it is a custom post type display name and link
            if($post_type != 'post') {
                  
                $post_type_object = get_post_type_object($post_type);
                $post_type_archive = get_post_type_archive_link($post_type);
              
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
              
            }
              
            $custom_tax_name = get_queried_object()->name;
            echo '<li class="item-current item-archive"><strong class="bread-current bread-archive">' . $custom_tax_name . '</strong></li>';
              
        } else if ( is_single() ) {
              
            // If post is a custom post type
            $post_type = get_post_type();
              
            // If it is a custom post type display name and link
            if($post_type != 'post') {
                  
                $post_type_object = get_post_type_object($post_type);
                $post_type_archive = get_post_type_archive_link($post_type);
              
                echo '<li class="item-cat item-custom-post-type-' . $post_type . '"><a class="bread-cat bread-custom-post-type-' . $post_type . '" href="' . $post_type_archive . '" title="' . $post_type_object->labels->name . '">' . $post_type_object->labels->name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
              
            }
              
            // Get post category info
            $category = get_the_category();
             
            if(!empty($category)) {
              
                // Get last category post is in
                $last_category = end(array_values($category));
                  
                // Get parent any categories and create array
                $get_cat_parents = rtrim(get_category_parents($last_category->term_id, true, ','),',');
                $cat_parents = explode(',',$get_cat_parents);
                  
                // Loop through parent categories and store in variable $cat_display
                $cat_display = '';
                foreach($cat_parents as $parents) {
                    $cat_display .= '<li class="item-cat">'.$parents.'</li>';
                    $cat_display .= '<li class="separator"> ' . $separator . ' </li>';
                }
             
            }
              
            // If it's a custom post type within a custom taxonomy
            $taxonomy_exists = taxonomy_exists($custom_taxonomy);
            if(empty($last_category) && !empty($custom_taxonomy) && $taxonomy_exists) {
                   
                $taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );
                $cat_id         = $taxonomy_terms[0]->term_id;
                $cat_nicename   = $taxonomy_terms[0]->slug;
                $cat_link       = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);
                $cat_name       = $taxonomy_terms[0]->name;
               
            }
              
            // Check if the post is in a category
            if(!empty($last_category)) {
                echo $cat_display;
                echo '<li class="item-current item-' . $post->ID . '"><span class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</span></li>';
                  
            // Else if post is in a custom taxonomy
            } else if(!empty($cat_id)) {
                  
                echo '<li class="item-cat item-cat-' . $cat_id . ' item-cat-' . $cat_nicename . '"><a class="bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $cat_nicename . '" href="' . $cat_link . '" title="' . $cat_name . '">' . $cat_name . '</a></li>';
                echo '<li class="separator"> ' . $separator . ' </li>';
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>';
              
            } else {
                  
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '" title="' . get_the_title() . '">' . get_the_title() . '</strong></li>';
                  
            }
              
        } else if ( is_category() ) {
               
            // Category page
            echo '<li class="item-current item-cat"><strong class="bread-current bread-cat">' . single_cat_title('', false) . '</strong></li>';
               
        } else if ( is_page() ) {
               
            // Standard page
            if( $post->post_parent ){
                   
                // If child page, get parents 
                $anc = get_post_ancestors( $post->ID );
                   
                // Get parents in the right order
                $anc = array_reverse($anc);
                   
                // Parent page loop
                if ( !isset( $parents ) ) $parents = null;
                foreach ( $anc as $ancestor ) {
                    $parents .= '<li class="item-parent item-parent-' . $ancestor . '"><a class="bread-parent bread-parent-' . $ancestor . '" href="' . get_permalink($ancestor) . '" title="' . get_the_title($ancestor) . '">' . get_the_title($ancestor) . '</a></li>';
                    $parents .= '<li class="separator separator-' . $ancestor . '"> ' . $separator . ' </li>';
                }
                   
                // Display parent pages
                echo $parents;
                   
                // Current page
                echo '<li class="item-current item-' . $post->ID . '"><strong title="' . get_the_title() . '"> ' . get_the_title() . '</strong></li>';
                   
            } else {
                   
                // Just display current page if not parents
                echo '<li class="item-current item-' . $post->ID . '"><strong class="bread-current bread-' . $post->ID . '"> ' . get_the_title() . '</strong></li>';
                   
            }
               
        } else if ( is_tag() ) {
               
            // Tag page
               
            // Get tag information
            $term_id        = get_query_var('tag_id');
            $taxonomy       = 'post_tag';
            $args           = 'include=' . $term_id;
            $terms          = get_terms( $taxonomy, $args );
            $get_term_id    = $terms[0]->term_id;
            $get_term_slug  = $terms[0]->slug;
            $get_term_name  = $terms[0]->name;
               
            // Display the tag name
            echo '<li class="item-current item-tag-' . $get_term_id . ' item-tag-' . $get_term_slug . '"><strong class="bread-current bread-tag-' . $get_term_id . ' bread-tag-' . $get_term_slug . '">' . $get_term_name . '</strong></li>';
           
        } elseif ( is_day() ) {
               
            // Day archive
               
            // Year link
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>';
               
            // Month link
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><a class="bread-month bread-month-' . get_the_time('m') . '" href="' . get_month_link( get_the_time('Y'), get_the_time('m') ) . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('m') . '"> ' . $separator . ' </li>';
               
            // Day display
            echo '<li class="item-current item-' . get_the_time('j') . '"><span class="bread-current bread-' . get_the_time('j') . '"> ' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives</span></li>';
               
        } else if ( is_month() ) {
               
            // Month Archive
               
            // Year link
            echo '<li class="item-year item-year-' . get_the_time('Y') . '"><a class="bread-year bread-year-' . get_the_time('Y') . '" href="' . get_year_link( get_the_time('Y') ) . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</a></li>';
            echo '<li class="separator separator-' . get_the_time('Y') . '"> ' . $separator . ' </li>';
               
            // Month display
            echo '<li class="item-month item-month-' . get_the_time('m') . '"><strong class="bread-month bread-month-' . get_the_time('m') . '" title="' . get_the_time('M') . '">' . get_the_time('M') . ' Archives</strong></li>';
               
        } else if ( is_year() ) {
               
            // Display year archive
            echo '<li class="item-current item-current-' . get_the_time('Y') . '"><strong class="bread-current bread-current-' . get_the_time('Y') . '" title="' . get_the_time('Y') . '">' . get_the_time('Y') . ' Archives</strong></li>';
               
        } else if ( is_author() ) {
               
            // Auhor archive
               
            // Get the author information
            global $author;
            $userdata = get_userdata( $author );
               
            // Display author name
            echo '<li class="item-current item-current-' . $userdata->user_nicename . '"><strong class="bread-current bread-current-' . $userdata->user_nicename . '" title="' . $userdata->display_name . '">' . 'Author: ' . $userdata->display_name . '</strong></li>';
           
        } else if ( get_query_var('paged') ) {
               
            // Paginated archives
            echo '<li class="item-current item-current-' . get_query_var('paged') . '"><strong class="bread-current bread-current-' . get_query_var('paged') . '" title="Page ' . get_query_var('paged') . '">'.__('Page') . ' ' . get_query_var('paged') . '</strong></li>';
               
        } else if ( is_search() ) {
           
            // Search results page
            echo '<li class="item-current item-current-' . get_search_query() . '"><strong class="bread-current bread-current-' . get_search_query() . '" title="Search results for: ' . get_search_query() . '">Search results for: ' . get_search_query() . '</strong></li>';
           
        } elseif ( is_404() ) {
               
            // 404 page
            echo '<li>' . 'Error 404' . '</li>';
        }
       
        echo '</ul>';
           
    }
       
}

as

das

d

asd

sd

crossmenuchevron-down linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram