Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28724

    Coalition does not support cyrillic links. For example, menu item called “привет”. There will be no http://example.com/#привет, there will only be http://example.com/#. What do I need to edit in code to make it work or to edit hash names separate from menu item name so I add latin hash to cyrillic menu item.

    Thanks

    #138447

    Hi,

    Did you try the custom link option? You can add any link url (i.e. http://example.com/#about ) in the first field and enter a Cyrillic title (привет) in the second field

    #138448

    Hello! I am using one page portfolio. “Sidebar main menu links are created automatically based on the Sections you add to the page in your One Page Portfolio Builder”.

    #138449

    Ah ok, now I understand the issue. Open up wp-contentthemescoalitionincludesadminregister-admin-dynamic-one-page-portfolio.php and replace

    array(	"name" 	=> "Link and Section Name",
    "desc" 	=> "The name will be used as Link Text",
    "id" 	=> "dynamic_section_name",
    "type" 	=> "text",
    "slug"	=> "",
    "std"	=> ""),

    with

    array(	"name" 	=> "Link and Section Name",
    "desc" 	=> "The name will be used as Link Text",
    "id" 	=> "dynamic_section_name",
    "type" 	=> "text",
    "slug"	=> "",
    "std"	=> ""),
    
    array(	"name" 	=> "Section ID",
    "desc" 	=> "This ID will be used for the hash value (anchor) in the url address bar. Make sure it just contains latin characters. Leave this field empty to use the section name as id.",
    "id" 	=> "dynamic_section_id",
    "type" 	=> "text",
    "slug"	=> "",
    "std"	=> ""),

    Then open up wp-contentthemescoalitionincludeshelper-templates.php and replace

    $section_id = avia_backend_safe_string($dynamic_section_name, '-');
    $section_id = str_replace('.','-',$section_id);

    with

    if(!empty($dynamic_section_id))
    {
    $section_id = $dynamic_section_id;
    }
    else
    {
    $section_id = avia_backend_safe_string($dynamic_section_name, '-');
    $section_id = str_replace('.','-',$section_id);
    }

    and

    $anchor = avia_backend_safe_string($dynamic_section_name, '-');
    with

    if(!empty($dynamic_section_id))
    {
    $anchor = $dynamic_section_id;
    }
    else
    {
    $anchor  = avia_backend_safe_string($dynamic_section_name, '-');
    }
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Cyrillic hash in address’ is closed to new replies.