New Landing How can we help? Cardinal Basic theme edits

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #95491
    George
    Member
    Post count: 235

    Hi guys,

    I want to change a few things as follows, it should be simple.

    On a category page, if there are no posts to display, i want to change the text
    from:
    Sorry, there are no posts to display.

    to:
    Sorry, we have no pre-made packages available. Please contact us (link here) for a customised package.

    and

    On the related article pagination.

    from:
    Related Articles

    to:
    Related Travel

    Thank you in advance!

    #95518
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Please see file paths and line numbers below to change:

    cardinal/swift-framework/layout/archive.php:
       45  <?php else: ?>
       46  	
       47: 	<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
       48  
       49  <?php endif; ?>
    
    cardinal/swift-framework/layout/author.php:
       41  <?php else: ?>
       42  	
       43: 	<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
       44  
       45  <?php endif; ?>
    
    cardinal/swift-framework/layout/campaigns.php:
       24  <?php else: ?>
       25  	
       26: 	<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
       27  
       28  <?php endif; ?>
    
    cardinal/swift-framework/layout/portfolio-category.php:
       17  <?php else: ?>
       18  
       19: <h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
       20  
       21  <?php endif; ?>
    
    cardinal/swift-framework/layout/search.php:
       35  	
       36  	
       37: 	<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
       38  	

    and

    cardinal/swift-framework/content/sf-post-detail.php:
      440  				echo '<div class="related-wrap">';						
      441  					echo '<div class="related-articles '.$related_articles_class.'">';						
      442: 						echo '<h2 class="heading">'.__("Related Articles", "swiftframework").'</h2>';
      443  						echo '<div class="related-items recent-posts posts-type-bold no-gutters clearfix">';

    – Kyle

    #95864
    George
    Member
    Post count: 235

    Hi Kyle,

    Would i edit this through the wordpress editor? or the files loaded via ftp?

    I can actually find those file paths uploaded, it’s quite different to old themes i’ve used.

    #95939
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You need to access the files through ftp

    – Kyle

    #100886
    George
    Member
    Post count: 235

    Hi Kyle,

    When accessing the files as above, i get errors on the front-end of wordpress, and it shows me a line number etc.

    What am i doing wrong when editing the .php files?

    Thank you.

    #100938
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You can only edit the text in between the quotes, for e.g.:

    “Sorry, there are no posts to display.”

    – Kyle

    #101265
    George
    Member
    Post count: 235

    Hi Kyle,

    Thanks, i realised that the ” after changing text was being altered automatically, which was causing issues.

    I have another question, should i have duplicate files that begin with ._archive.php instead of archive.php ?

    The ._ files were uploaded with my original theme installation, but with updates they’re not included in the theme files. Do you think it would be okay to simply delete these, as i think they’re preventing the changes from archive.php from being shown.

    Also, where would these have come from?

    Please see the attached image.

    Attachments:
    You must be logged in to view attached files.
    #101274
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Yes delete those, they shouldn’t be there

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register