Can’t edit “Continue Reading”
-
Hello, i can’t change “Continue Reading” in my wordpress page.. I edited that line of code but “Continue reading” is still displayed on my page..
Thank you,
Luka
-
BTW Link to my site is luka.veze.net
I edited that line of code but “Continue reading” is … still
what line of code in what file?
as far as I can see, the corresponding line is in content-archive.php:
<?php the_content( __('<div class="meta-nav">Continue reading... →</div>', 'sg-window' )); ?>copy the file content-archive.php from the parent theme ‘SG Window’ into your child theme ‘SG Double’ and edit it there.
if you need further help, please ask in your theme’s forum at https://wordpress.org/support/theme/sg-double or in the parent theme’s forum at https://wordpress.org/support/theme/sg-window
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search
*
* @package WordPress
* @subpackage sgwindow
* @since SG Window 1.0.0
*/
?>
<div class="content-container"><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_single() ) :if ( '1' == sgwindow_get_theme_mod('is_display_post_title') ) :
the_title( '<h1 class="entry-title">', '</h1>' );
endif;
else :
the_title( '<h1 class="entry-title">', '</h1>' );
endif;
?><?php if ( '1' == sgwindow_get_theme_mod( 'is_display_post_cat' ) ) : ?>
<div class="category-list">
<?php echo get_the_category_list(''); ?>
</div><!-- .category-list --><?php endif; ?>
<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() && '1' == sgwindow_get_theme_mod('is_display_post_image') ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?></header><!-- .entry-header -->
<?php if ( is_search() ) : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __('<div class="meta-nav">Detaljnije...→</div>', 'sg-window' )); ?><?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'sg-window'), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="clear"></div>
<footer class="entry-footer">
<div class="entry-meta"><?php if ( '1' == sgwindow_get_theme_mod('is_display_post_tags') ) : ?>
<div class="tags">
<?php echo get_the_tag_list('', ' ');?>
</div><?php endif; ?>
<span class="post-date">
<?php sgwindow_posted_on(); ?>
</span>
<?php edit_post_link( __( 'Edit', 'sg-window' ), '<span class="edit-link">', '</span>' ); ?>
</div> <!-- .entry-meta -->
<?php
if ( is_single() ) :
do_action( 'sgwindow_after_content' );
endif;
?>
</footer><!-- .entry-footer -->
</article><!-- #post -->
</div><!-- .content-container -->
<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?> <div class="entry-thumbnail"> <?php the_post_thumbnail(); ?> </div> <?php endif; ?>
Here is my code, is there any way to change it without child theme? I don’t want to lose all my stuff on website 🙁
Btw i don’t need to update my theme, and it wont update on its own because i blocked it..
Luka
But you may want to follow this advice.
if you need further help, please ask in your theme’s forum at https://wordpress.org/support/theme/sg-double or in the parent theme’s forum at https://wordpress.org/support/theme/sg-window
you were showing and editing content.php (which is showing ‘Read more… ‘) in your theme
– consider to edit content-archive.php (which has the ‘Continue Reading …’ text) …
The topic ‘Can’t edit “Continue Reading”’ is closed to new replies.