Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1197173
    PeterBeer2
    Participant

    Hi,

    i want do disable the headerlink. So when i klick the Headerimage shoult happen.

    How can i do that?

    Theme: Integrity
    Child Theme already set up.

    Best reagarts
    Peter

    #1197255
    Joao
    Moderator

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #1197285
    PeterBeer2
    Participant

    When i klick the Header Image the link go to this page: http://www.achtsamkeitsacademy.de/

    But i want the link go to a differnten page: http://www.achtsamkeitsacademy.de/index.php/mitgliederbereich

    See Screenshot :).

    Thank you

    #1197446
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1198280
    PeterBeer2
    Participant
    This reply has been marked as private.
    #1198285
    Rue Nel
    Moderator

    Hello There,

    Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // -----------------------------------------------------------------------------
    // Outputs the brand.
    // =============================================================================
    
    $site_name        = get_bloginfo( 'name' );
    $site_description = get_bloginfo( 'description' );
    $logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
    $site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';
    
    ?>
    
    <?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>
    
    <a href="http://www.achtsamkeitsacademy.de/index.php/mitgliederbereich" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>

    3] Save the file named as _brand.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/global/

    Please let us know if this works out for you.

    #1199132
    PeterBeer2
    Participant

    I get this Error:

    Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING) in /www/htdocs/w010168e/achtsamkeits-academy.de/wordpress/wp-content/themes/x-child/framework/views/global/_brand.php on line 10

    When i put _brand.php here w010168e/achtsamkeits-academy.de/wordpress/wp-content/themes/x-child/framework/views/global/

    #1199145
    Christopher
    Moderator

    Hi there,

    Please remove the code we provided in previous replay.

    Please add following code in Customize -> Custom -> JavaScript :

    jQuery("a.x-brand.img").attr("href","http://www.achtsamkeitsacademy.de/index.php/oops-this-content-is-members-only");

    Thanks.

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