2017-06-20 12 views
0

私はブログサイトを作っています。 改ページを使用するすべての画像に対して次のボタンが表示されます。 次のボタンはデスクトップでは完全に動作していますが、モバイルでは機能しません。Wordpressページングボタンはデスクトップでは動作しますが、モバイルまたはスモールスクリーンでは機能しません。

$args = array(
    'before'   => '<center><p style="float:none;">' . __('<span 
    style="margin-top:7px;font-size:18pt;">Page '.$page.'- 
    '.$numpages.'</span>'), 
    'after'   => '</p></center>', 
    'link_before'  => '', 
    'link_after'  => '', 
    'next_or_number' => 'next', //change into number for numeric 
          pagination 
    'separator'  => ' ', 
    'nextpagelink'  => __('<button style="cursor:pointer;color:white; 
             background:#ff8000; border- 
           radius:40px;height:50px;width:250px;font- 
           size:15pt" class="btn"><span style>Next 
          </span><span class="dashicons dashicons-arrow-right-alt2"></span></button>'), 
    'previouspagelink' => __(''), 
    'pagelink'   => '%', 
    'echo'    => 3 
); 
wp_link_pages($args); 

これはデスクトップで完璧に動作しますが、モバイル

答えて

0

に応答しませんが、同じスタイリングでアンカーにボタンを長寧試してみてください、ここにあなたの更新されたコードです:

$args = array(
    'before'   => '<center><p style="float:none;">' . __('<span 
    style="margin-top:7px;font-size:18pt;">Page '.$page.'- 
    '.$numpages.'</span>'), 
    'after'   => '</p></center>', 
    'link_before'  => '', 
    'link_after'  => '', 
    'next_or_number' => 'next', //change into number for numeric pagination 
    'separator'  => ' ', 
    'nextpagelink'  => __('<span style="cursor:pointer;color:white; 
             background:#ff8000; border- 
           radius:40px;height:50px;width:250px;font- 
           size:15pt" class="btn">Next 
          </span><span class="dashicons dashicons-arrow-right-alt2"></span>'), 
    'previouspagelink' => __(''), 
    'pagelink'   => '%', 
    'echo'    => 3 
); 
wp_link_pages($args); 
+0

なしでは動作しません。同じ問題。 –

+0

答えを更新しました。今すぐ試してください。アンカーは 'nextpagelink'にあってはいけません。 –

+0

は依然として分解能が低下していません –

関連する問題