Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1105208
    sharp-image
    Participant

    Hi there,

    In the dir: wp-content/themes/x-child/framework/lang/ I’ve setup the 2 files: nl_NL.mo and nl_NL.po
    But every time when there is a theme update the langauge files will be overwritten… But as you can see have I setup a child theme. Using the Ethos version of the X theme.

    What is going wrong here?

    Cheers
    Bouke

    #1105257
    Rahul
    Moderator

    Hey There,

    You can follow this thread : https://community.theme.co/kb/translation/

    If you are not getting it, provide us your login credentials so that we can get more closer look to it.

    Let us know how it goes!

    Thanks!

    #1105639
    sharp-image
    Participant

    Hi Rahul,

    Thanks! That update on the functions.php and adding the correct directory on fp fixed it whit theme updates.

    Cheers.

    #1105691
    Joao
    Moderator

    Glad to hear it,

    Joao

    #1106706
    sharp-image
    Participant

    Hi,

    Thanks so far I have another not related to this topic question. Little bit out of the box I guess, but I will give it a try:-)
    I have set up breadcrumbs only in my posts and css-styled the breadcrumbs on pages away with a display: none;. Works perfect.
    In my functions.php have I placed the following code for breadcrumbs:

    // FM posts veranderen 
    function x_breadcrumbs() {
    
        if ( x_get_option( 'x_breadcrumb_display' ) ) {
    
          GLOBAL $post;
    
          $is_ltr         = ! is_rtl();
          $stack          = x_get_stack();
          $delimiter      = x_get_breadcrumb_delimiter();
          $home_text      = x_get_breadcrumb_home_text();
          $home_link      = site_url('muziekprofiel');
          $current_before = x_get_breadcrumb_current_before();
          $current_after  = x_get_breadcrumb_current_after();
          $page_title     = get_the_title();
          $blog_title     = get_the_title( get_option( 'page_for_posts', true ) );

    Now my question is how can I change the $home_link = site_url to the last page from where the visitor came from. In other words the visitor must be navigated just one step back. Guess this is the most easiest way because the structure is: website/profile/user/posts. I have fixed it with: $home_link= site_url('profile'); but then the visitor will be navigated to his own profile.

    Many thanks!

    #1106716
    Rad
    Moderator

    Hi there,

    Please Try this one,

    $home_link = 'javascript:window.history.back();'

    Hope this helps.

    #1106742
    sharp-image
    Participant

    Perfect, Many thanks!

    #1106970
    Joao
    Moderator

    You are welcome.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1105208 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>