WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Medicine
Remove the button "read more" Showroom (5 posts)

  1. urrieta.o
    Member
    Posted 2 years ago #

    Hello. I'm From Venezuela and this theme is perfect for me.
    I'd like to know if it's possible remove the "Read More" button of the Showroom?
    Sorry for my English

  2. LizardThemes
    Member
    Theme Author

    Posted 2 years ago #

    Hi!
    Try to remove "Read more" in Showroom you have to delete the following code:
    <a> class='readmore'><?php echo $settings['showroom']['srreadmore']; ?></a>
    in the file showroom.php located in the directory of the theme.

  3. urrieta.o
    Member
    Posted 2 years ago #

    Thanks, It Works.

    I have another question. How can change the languages in the list select menu on homepage of the mobile version.

    I'd like "select page" is in spanish on the mobile version, how can I do it?.

  4. LizardThemes
    Member
    Theme Author

    Posted 2 years ago #

    Hi!

    To change this text you have to find the code:

    jQuery(document).ready(function() {
    	jQuery('#header .menu').each(function() {
    		var menu;
    		menu = jQuery('<select>', {
    			'class':'mobile-menu'
    		}).append(jQuery('<option>').text('Select page'));
    		jQuery('li', this).each(function() {
    			menu.append(
    				jQuery('<option>', {
    					'value':jQuery('a:first', this).attr('href')
    				}).text(jQuery('a:first', this).text())
    			);
    		});
    
    		jQuery('#logo').after(menu);
    	});
    
    });

    in the file js/main.js and change the "Select page" text.

  5. karollew
    Member
    Posted 1 year ago #

    Hi,

    I'd like to refresh the subject. I did not manage to remove 'rad more' button.

    I've done as below but no joy. Any thoughts?

    <?php global $settings; ?>
    <?php if ( ($settings['elements']['showroom']['show'] || is_super_admin())&&(is_front_page()||$settings['showroom']['srinnerpages']) ) { ?>

    <div class='lzblock' data-block="showroom" <?php if (!$settings['elements']['showroom']['show']&&is_super_admin()) echo 'style="display:none"'; ?>>
    <div class='showroom-block'>

    <?php
    $args=array( 'post_type' => $settings['showroom']['showroomsrc'], 'posts_per_page' => 4 );
    if ( $settings['showroom']['onlymarked'] ) {$args['meta_key']='forshowroom';$args['meta_value']=true;}
    $items = new WP_Query( $args );
    ?>
    <?php while ( $items->have_posts() ) : $items->the_post(); ?>

    <div class='item'>
    <?php echo get_the_post_thumbnail( $post->ID, 'showroom' ); ?>
    <h3><?php echo $post->post_title; ?></h3>
    <?php if ($settings['showroom']['length'] > 0) medicine_custom_excerpt('echo=true&maxchar='.$settings['showroom']['length']); ?>
    // ' class='readmore'><?php echo $settings['showroom']['srreadmore']; ?>
    </div>

    <?php endwhile; ?>
    <?php wp_reset_query(); ?>
    <div class='clear'></div>
    </div>
    </div>
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.