- How to Import Ready Portfolio Items?
- How to Reorder Portfolio Items?
- How to Create Image Portfolio?
- How to Get the ID for Categories, Other Categories, and Tags?
- WP Portfolio ShortCode and Attributes
- No Items Found message – flush the permalinks.
- How to Create Video Gallery?
- How to Show Specific Portfolio Items using Shortcode?
- How to Hide Portfolio Menu Panel?
- How to Create Websites Portfolio?
- Slider doesn’t work on iOS Devices when Previewed in Portfolio
- How to Add CTA on the Preview Bar?
- How to Override Portfolio Templates?
- Re-import Starter Templates in Portfolio
- How to Style Portfolio Items and Menu Bar
- How to Create Single Page Portfolio?
- Update Navigation Link Strings on Single Portfolio Page
- How to Change “Quick View” String?
- Change site loading message
- How to replicate Starter Templates library?
Update Navigation Link Strings on Single Portfolio Page
While using WP Portfolio with Astra theme you will see navigation links on a single portfolio page. These links will allow navigating to the next/previous single page portfolio.
In case you need to alter this navigation link text use the following filter. Paste the filter code into the child theme’s functions.php file.
function astra_child_change_nav_links( $defaults ) { if( 'astra-portfolio' === get_post_type() ) { $defaults['string-single-navigation-next'] = __( 'My Next Custom Text', 'astra' ) . ' →'; $defaults['string-single-navigation-previous'] = '← ' . __( 'My Previous Custom Text', 'astra' ); } return $defaults; } add_filter( 'astra_default_strings', 'astra_child_change_nav_links' );
Was this doc helpful?
What went wrong?
We don't respond to the article feedback, we use it to improve our support content.
On this page