Skip to content
Public Ticket #352

Read more button for Featured Post at Home

Conversation thread

PenciDesign replied

Staff Reply

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

codeupdates replied

Customer Reply

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

I can not see the button anywhere. Why?

Thanks and Regards!

PenciDesign replied

Staff Reply

Hi,

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

Best Regards,

PenciDesign

codeupdates replied

Customer Reply

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

Thanks! ;-)

codeupdates replied

Customer Reply

Its working! Thanks!

codeupdates replied

Customer Reply

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

Customer Reply

Hi,

i am using Recent Posts Widget.

PenciDesign replied

Staff Reply

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

Customer Reply

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

codeupdates replied

Customer Reply

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

Customer Reply

Thanks! That is what i wanted to know!

PenciDesign replied

Staff Reply

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

Customer Reply

I am using a Child Theme!

codeupdates replied

Customer Reply

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

Can you please tell me where can i change it?

Best Regards


PenciDesign replied

Staff Reply

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 started the conversation

Conversation Start

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!

Want to join this conversation or access attachments? Sign in first.