Home Forums Fashionic WordPress Theme How to increase the number of slides on page to more than 10

This topic contains 7 replies, has 2 voices, and was last updated by  frankpijnenburg 2 years, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #166

    BWSM
    Keymaster

    1. Change front end template:

    1) Change slider.php

    Copy the code in line 94

    <?php if($img10url) { ?>,{image : '<?php echo $img10url; ?>', title : '<a href=&quot;<?php echo $img10link; ?>&quot; title=&quot;<?php echo $img10title; ?>&quot;><?php echo $img10title; ?></a>', thumb : '', url : '<?php echo $img10link; ?>'}<?php } ?>
    

    Paste after the line 94, change 10 as 11

    2) Do same thing for line44-46 page.php

    $img10url = get_post_meta(get_the_ID(), "meta_box_image10_url", true);
    $img10title = get_post_meta(get_the_ID(), "meta_box_image10_title", true);
    $img10link = get_post_meta(get_the_ID(), "meta_box_image10_link", true);

    2. Change admin end template:
    Do same thing for metabox.php in functions folder

    line 53-54

    $img10Url = isset( $values['meta_box_image10_url'] ) ? esc_attr( $values['meta_box_image10_url'][0] ) : '';
    $img10Title = isset( $values['meta_box_image10_title'] ) ? esc_attr( $values['meta_box_image10_title'][0] ) : '';
    $img10Link = isset( $values['meta_box_image10_link'] ) ? esc_attr( $values['meta_box_image10_link'][0] ) : '';

    line 183-192

    <div class=&quot;option_section_title&quot;><?php _e('Image 10','ux'); ?></div><br />
    <p class=&quot;option_item imageunit&quot;><br />
    <label for=&quot;meta_box_image10_url&quot;><?php _e('Image URL','ux'); ?></label> <br />
    <input id=&quot;meta_box_image10_url&quot; class=&quot;meta_box_image_url&quot; type=&quot;text&quot; size=&quot;36&quot; name=&quot;meta_box_image10_url&quot; value=&quot;<?php if ( $img10Url ) { echo $img10Url; } ?>&quot; /><br />
    <input id=&quot;meta_box_image10_url_button&quot; class=&quot;img_upload_btn&quot; type=&quot;button&quot; value=&quot;Upload Image&quot; /><br />
    <label for=&quot;meta_box_image10_title&quot;><?php _e('Image Title','ux'); ?></label><br />
    <input type=&quot;text&quot; name=&quot;meta_box_image10_title&quot; id=&quot;meta_box_image10_title&quot; class=&quot;meta_box_image_url&quot; value=&quot;<?php echo $img10Title; ?>&quot; /><br />
    <label for=&quot;meta_box_image10_link&quot;><?php _e('Link','ux'); ?></label><br />
    <input type=&quot;text&quot; name=&quot;meta_box_image10_link&quot; id=&quot;meta_box_image10_link&quot; class=&quot;meta_box_image_url&quot; value=&quot;<?php echo $img10Link; ?>&quot; />

    line 479-484

    	if( isset( $_POST['meta_box_image10_url'] ) )
    		update_post_meta( $post_id, 'meta_box_image10_url', wp_kses( $_POST['meta_box_image10_url'], $allowed ) );		
    	if( isset( $_POST['meta_box_image10_title'] ) )
    		update_post_meta( $post_id, 'meta_box_image10_title', wp_kses( $_POST['meta_box_image10_title'], $allowed ) );
    	if( isset( $_POST['meta_box_image10_link'] ) )
    		update_post_meta( $post_id, 'meta_box_image10_link', wp_kses( $_POST['meta_box_image10_link'], $allowed ) );
    #5276

    frankpijnenburg
    Participant

    Hello, I tried this because my client wants to show all 19 slides on the home page. I followed these intructions but it doesn’t work. Did I miss something?
    Thanks and kind regards, Frank

    #5277

    BWSM
    Keymaster

    Hi Frank, please leave your wp-admin(url/user/pass) and FTP as private reply, I’ll log in to check it.
    note: the AdSan’s role can’t check theme option

    Best,Bwsm
    Follow on @uiueux to get update news!

    • This reply was modified 2 years, 6 months ago by  BWSM.
    #5308

    frankpijnenburg
    Participant
    This reply has been marked as private.
    #5318

    BWSM
    Keymaster

    Hi Frank,

    I can’t login your ftp. I have changed the 3 php templates(add the slide number to 20), please download it, unzip it.

    Replace the 3 files by ftp:

    – slider.php
    – page.php
    – /functions/metabox.php

    Best,Bwsm

    #5330

    frankpijnenburg
    Participant
    This reply has been marked as private.
    #5331

    BWSM
    Keymaster

    HI, did you mean the number of posts shown per page? The post is talk about slider. You need change the Page Options / Number of Posts in page editing.

    #5334

    frankpijnenburg
    Participant

    Hi,
    That was it!!! Great, thank you!!!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.