Forum Replies Created

Viewing 15 replies - 181 through 195 (of 316 total)
  • Plugin Author ishitaka

    (@ishitaka)

    提示のコードのままであれば、そのようなエラーにはならないと思います。一度そのままのコード(コピペ)で試してみてください。

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    下記のようなコードでカレンダーの表示を2022年3月までに制限することができます。

    子テーマの functions.php に、

    function my_xo_event_calendar_args( $args ) {
        // if ( 'xo_event_calendar-1-calendar' !== $args['id'] ) return $args;
    
        $y = 2022;
        $m = 3;
    
        $date1 = strtotime( date_i18n( 'Y-m-01' ) );
        $date2 = strtotime( "{$y}-{$m}-01" );
        $month1 = date( 'Y', $date1 ) * 12 + date( 'm', $date1 );
        $month2 = date( 'Y', $date2 ) * 12 + date( 'm', $date2 );
        $diff = $month2 - $month1;
        if ( $diff < 0 ) {
            $args['year'] = $y;
            $args['month'] = $m;
            $args['next_month_feed'] = -1000;
        } else {
            $args['next_month_feed'] = $diff;
        }
    
        return $args;
    }
    add_filter( 'xo_event_calendar_args', 'my_xo_event_calendar_args' );

    参考ページ:
    xo_event_calendar_args フィルターフック
    https://xakuro.com/wordpress/xo-event-calendar/xo-event-calendar-args/

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    下記のような CSS でカレンダーの曜日の背景色を透明(transparent)&文字色を黒に変更することができます。
    カスタマイズの [追加 CSS] または、テーマの style.css に追記してみてください。

    例:

    .xo-event-calendar table.xo-month > thead th {
    	color: #000;
    	background-color: transparent;
    }

    曜日ごとに個別に指定(日の背景色を赤色、土を青色)する場合の例:

    .xo-event-calendar table.xo-month > thead th {
    	color: #fff !important;
    	background-color: #7c8e9c;
    }
    .xo-event-calendar table.xo-month > thead th.sunday {
    	background-color: #f74a2c;
    }
    .xo-event-calendar table.xo-month > thead th.saturday {
    	background-color: #0974dc;
    }
    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    下記のような CSS でできると思います。

    例:

    @keyframes zoomOut {
      0% {
          transform: scale(1);
      }
      100% {
          transform: scale(1.3);
      }
    }
    
    .swiper-slide-active .slide-image,
    .swiper-slide-duplicate-active .slide-image,
    .swiper-slide-prev .slide-image {
        animation: zoomOut 10s linear 0s;
        animation-fill-mode: both;
    }

    ※ アニメーション効果は「fade」を選択。

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    下記ページのショートコードでしょうか?
    https://xakuro.com/blog/wordpress/1376/

    こちらでしたら、提示の方法(orderby=”event_start_date”)でイベント開催日時順になると思います。
    他のプラグインが影響しているのかもしれません。すべてのプラグインの無効化や、一旦デフォルトテーマに切り替えてみるなど試してみてください。

    Forum: Plugins
    In reply to: [XO Slider] Responsive
    Plugin Author ishitaka

    (@ishitaka)

    Hi,

    How about the following CSS?

    .xo-slider-template-default .swiper-slide img {
      min-height: 400px;
      object-fit: cover;
    }
    Plugin Author ishitaka

    (@ishitaka)

    Hi,

    I would like to consider adding it.
    In addition, the following code can be used to stop it on hover.

    In the theme functions.php,

    function my_xo_slider_script_parameter( $params, $slide, $key ) {
    	if ( 1234 == $slide->id ) {
    		$params['autoplay']['disableOnInteraction'] = false;
    		$params['autoplay']['pauseOnMouseEnter'] = true;
    	}
    	return $params;
    }
    add_filter( 'xo_slider_script_parameter', 'my_xo_slider_script_parameter', 10, 3 );

    * 1234 in the code is the slider ID.

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    登録順で並べる方法はありませんでしょうか?

    イベント開始日が同じ日付の場合は登録順になります。登録日ということでしょうか?
    投稿日順であれば下記コードで変更できます。

    子テーマの functions.php に、

    function my_xo_event_calendar_events( $events, $args, $month_index ) {
    	usort( $events, function( $a, $b ) {
    		return strtotime( $a['post']->post_date ) > strtotime( $b['post']->post_date );
    	} );
    	return $events;
    }
    add_filter( 'xo_event_calendar_events', 'my_xo_event_calendar_events', 10, 3 );
    Plugin Author ishitaka

    (@ishitaka)

    Hi,

    There is no option setting. Need to change using CSS.

    Example:

    .xo-slider-template-default .slide-content-button,
    .xo-slider-template-thumbnail .slide-content-button {
      text-align: center;
    }
    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    スライドのパラメーター「ループ」ではダメでしょうか?ループをオフにするとスライドしなくなります。
    また、下記コードでスライドが1枚の場合に、このループを自動でオフにすることができます。

    子テーマの functions.php に、

    function my_xo_slider_script_parameter( $params, $slide, $key ) {
    	if ( 1234 === $slide->id ) {
    		if ( 1 === count( $slide->slides ) ) {
    			$params['loop'] = false;
    		}
    	}
    	return $params;
    }
    add_filter( 'xo_slider_script_parameter', 'my_xo_slider_script_parameter', 10, 3 );

    ※ コードの「1234」はスライド ID です。

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    すみません、ウィジェットはブロックに対応していませんでした。次のバージョンで対応したいと思います。
    それまでは、Classic Widgets プラグインを一時的に有効化して設定していただければと思います。m(__)m

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    提示 URL の記事の方法でできると思います(未検証ですが…)。

    イベント詳細ページは、カスタム投稿(スラッグ名は xo_event)ページです。
    よって、記事中の single-type1.php は single-xo_event.php となります。あとは、そのままでできると思います。

    Plugin Author ishitaka

    (@ishitaka)

    テーマが表示しています。変更するには子テーマでテンプレートを変更することになります。
    表示しないだけでよければ、カスタマイズの設定(下記ページ)で表示しないようにはできます。
    https://swell-theme.com/basic-setting/2229/#index_id2

    Plugin Author ishitaka

    (@ishitaka)

    こんにちは

    プラグインでは、イベント投稿ページのタイトルに投稿日を表示してはいません。
    テーマによるものだと思われます。お使いのテーマをお知らせください。

    Plugin Author ishitaka

    (@ishitaka)

    ページを確認しました。原因はキャプチャ画像(/wp-content/plugins/xo-security/captcha/captcha.php)へのアクセスがブロック(403 Forbidden)されているからでした。

    下記を試してみてください。
    ・他のセキュリティ系プラグイン(wpdoctor、siteguard)を一時無効化する。
    ・WAF を一時停止をする。
    ・パーミッションの確認。

Viewing 15 replies - 181 through 195 (of 316 total)