Home Forums WoodMart support forum separate the loop item text from the button

separate the loop item text from the button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #277284

    absnetwork
    Participant

    Hello
    I want to separate the ‘Continue reading’ button and take it out of the div ‘entry-content woodmart-entry-content’
    check the images please

    I found that the file ‘content-slider.php’ is the responsible to draw the HTML but I couldn’t modify it correctly

    <?php if (woodmart_loop_prop(‘parts_text’)) : ?>
    <div class=”entry-content woodmart-entry-content”>
    <?php woodmart_get_content(woodmart_loop_prop(‘parts_btn’)); ?>
    </div><!– .entry-content –>
    <?php endif; ?>

    Attachments:
    You must be logged in to view attached files.
    #277466

    Hello,

    Please copy the file: woodmart/content-slider.php into the child theme and then find this code:

    <?php if( woodmart_loop_prop( 'parts_text' ) ) : ?>
       <div class="entry-content wd-entry-content">
          <?php woodmart_get_content( woodmart_loop_prop( 'parts_btn' ) ); ?>
       </div><!-- .entry-content -->
    <?php endif; ?>

    Then replace this code wit this one:

    <?php if( woodmart_loop_prop( 'parts_text' ) ) : ?>
    	<div class="entry-content wd-entry-content">
    		<?php woodmart_get_content( false ); ?>
    	</div><!-- .entry-content -->
    	<p class="read-more-section"><?php echo woodmart_read_more_tag(); ?></p>
    <?php endif; ?>

    Best Regards

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