Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1306259
Read more button for Featured Post at Home
Closed

Comments

  • codeupdates started the conversation

    How can i put a "Read more" button like the Category View in the Featured Post Layout for Sidebar and Home?

    Thanks for your support!

  •  2,699
    PenciDesign replied

    Hi,


    Unfortunately, this theme doesn't support this feature. It's not good for the designs so we don't do that.


    Best Regards,

    PenciDesign

  • codeupdates replied

    Hi, i dienĀ“t ask if these is good or not!

    Can you please tell me where can i change it?

    Best Regards


  • codeupdates replied

    I am using a Child Theme!

  •  2,699
    PenciDesign replied

    Hi,

    As I said in my previous comment, our theme doesn't support this feature and the reason we don't make it.

    If you want to change it, you need to do that for yourself by edit php files in this theme.

    If you're using child theme, please create a new folder with name is inc and in folder inc, create 2 folders: modules and widgets.

    On folder modules, copy inc/modules/magazine-style-1.php file from parent theme and paste it to this folder  and modify it.

    On folder widgets, copy inc/widgets/lastest_post_widget.php file from parent theme and paste it to this folder and modify it.


    Best Regards,

    PenciDesign

  • codeupdates replied

    Thanks! That is what i wanted to know!


  • codeupdates replied

    Hello, Thanks for the Info. 

    I have implement the Read Link in the modules. Please see the Screenshot! :D

    Unfortunately the inc/widgets/lastest_post_widget.php is not working.

    Do I need to register the widgets in the child-theme > functions.php file?

    Here is the small section from the file inc/widgets/lastest_post_widget.php. There I integrated the link.

    <div class="side-item-text">
    <h4 class="side-title-post"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php if( $featured2 && ( ( ( $num == 1 ) && $featured ) || $allfeatured ) ) { echo wp_trim_words( wp_strip_all_tags( get_the_title() ), 12, '...' ); } else { the_title(); } ?></a></h4>
    <?php if( ! $postdate ): ?>
    <span class="side-item-meta"><?php the_time( get_option('date_format') ); ?></span>
    <?php endif; ?>
    </div>
    <a href="<?php the_permalink() ?>" class="penci-btn-readmore read-more">> weiterlesen</a>

    Thanks for the Support! ;-)


  • codeupdates replied

    Here is a Screenshot to show, that i create the folder in the child-theme!

  •  2,699
    PenciDesign replied

    Hi,

    Do you using "Latest Posts Widget" or "Popular Posts Widgets"?

    If you're using "Soledad Popular Posts" widget, you need to copy popular_post_widget.php from parent theme.


    Best Regards,

    PenciDesign

  • codeupdates replied

    Hi,

    i am using Recent Posts Widget.


  •   PenciDesign replied privately
  • codeupdates replied

    Hi, yes thats strange.

    your include has an error.

    it should be get_stylesheet_directory() because the Child Theme

    I put in the functions.php form child these code

    // Load Other Files
        if ( ! function_exists( 'elite_files' ) ):
     
            function elite_files() {
             
            // include widgets files
                include( trailingslashit( get_stylesheet_directory() ). 'inc/widgets/lastest_post_widget2.php' );
               
     
            }
         
        endif; // elite_files
         
        add_action( 'after_setup_theme', 'elite_files' );
    
  • codeupdates replied

    Its working! Thanks!

  • codeupdates replied

    What php file should i change to implement the read button in the Latest Posts View?

    Thanks! ;-)




  •  2,699
    PenciDesign replied

    Hi,

    With latest posts, you can eanble this button via Customize > Other Layout Options.


    Best Regards,

    PenciDesign

  • codeupdates replied

    Hello, i activated the checkbox for Add "Read more" button link!

    I can not see the button anywhere. Why?

    Thanks and Regards!

  •  2,699
    PenciDesign replied

    Hi,

    Ah, I just remember that this button will doesn't apply on magazine layout.

    Please copy content-magazine-1.php from parent theme to your child theme soledad-child/ and modify it.


    Best Regards,

    PenciDesign