The “Places” page for a destination is a virtual WordPress archive page that lists all the child destinations (what we call “places” in the theme) for a parent destination. You cannot edit archive pages, there is no physical post or page to edit.
The HTML title of Places pages is automatically created by WordPress from the page title (“Places”), the parent destination (e.g. “South America”), and the site title.
If it is the word “Places” you want to change, please refer to the diagram and explanations below…
1.
You can change the HTML title of the Places and Articles pages with the following code added to your ‘functions.php’ file…
// Customise Places and Articles in HTML title
if ( ! function_exists( 'destinations_html_title' ) ) :
function destinations_html_title( $title, $sep ) {
// Places in HTML title
if ( is_tax( 'destinations', 'places' ) ) {
$places_title = "My name for Places";
$title = preg_replace('/Places/', $places_title, $title, 1);
}
// Articles in HTML title
if ( is_tax( 'destinations', 'articles' ) ) {
$articles_title = "My name for Articles";
$title = preg_replace('/Articles/', $articles_title, $title, 1);
}
return $title;
}
endif; // destinations_html_title
add_filter( 'wp_title', 'destinations_html_title', 9, 2 );
In the above code, replace “My name for Places
” and “My name for Articles
” with whatever text you want to appear in the HTML title bar in place of the text “Places” and “Articles”.
Keep in mind that if you modify core theme files then each time you update the theme you will need to make all of those modifications again to the updated theme files. If you are going to customise PHP templates it’s best to do that in a child theme because that will make it easier for you to update the parent theme. There are more details about how to create a child theme for GoExplore! here…
→ http://para.llel.us/support/groups/goexplore/forum/topic/child-theme-5/#post-71402
2.
Here you go → http://para.llel.us/support/groups/goexplore/forum/topic/how-can-i-change-the-name-places/
3.
You can customise this title in Destinations > Settings > Destination Options…
4.
Here you go → http://para.llel.us/support/groups/goexplore/forum/topic/replace-places-in-destination/#post-73928
If there is anything else about the GoExplore! theme itself you need help with, please just let us know. If you can’t find a solution using the forum search please create a new topic for each separate issue and we’ll do our best to help.