Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • andy
  • jeffw
Group Mods
  • envatosupport

Create your travel agency, lodge, club, blog or destination website the quick and easy way. The GoExplore! travel WordPress theme can manage any travel website, from a personal travel blog to a world travel guide book.

GoExplore! (WordPress)

Public Group  |  active 1 year ago ago
Viewing post 1 to 8 (8 total posts)

Places page edit

  • driverfans

    said

    Hi!
    I can’t figure out how I can edit the “Places” page – http://para.llel.us/themes/goexplore/demo/destinations/oceania/places/
    I need to set unique title, descriptions, title <h1, but such a page does not exist in the admin part of wp.
    There is no edit item in the admin part of wp, if done in this way
    http://joxi.ru/5md78YDT30Og6r

    Although for any other page this item is
    http://joxi.ru/823kZxyi93bYj2

    Can I somehow delete this item altogether? Or change its name and make another section editing.

  • jeffw

    said

    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.

  • jeffw

    said

    As the multiple screenshots I posted in that other topic show, translating the strings for the Travel Destinations plugin works…

                     

    Help with translating a theme or plugin is beyond the scope of theme support because it is the exact same procedure no matter what theme or plugin you are translating. If you need assistance with this I recommend you search the internet for “translate wordpress theme” or “translate wordpress plugin” and similar.

    Editing the translation files in a text editor is not the way to do it. I recommend you use Poedit to create and edit your translation files. If you need help using the Poedit tool, its support page is here → https://poedit.net/support

    There are also plugins you can use to translate themes and plugins. I’ve never used it myself, I always use Poedit, but I believe the Loco Translate plugin is popular. → https://wordpress.org/plugins/loco-translate/

    Thanks.

    References:
    http://para.llel.us/support/groups/goexplore/forum/topic/change-text-place-informations-directory-ecc/

  • driverfans

    said

    The problem was that the file should be named, not just ru_RU, but destinations-ru_RU

  • jeffw

    said

    Indeed, just as the other language files for the destinations plugin are named ‘destinations-en_GB’ and ‘destinations-en_US’. I’m glad you figured it out.

Viewing post 1 to 8 (8 total posts)
Topic tags: places