Game theme and Kunena

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Mon May 25, 2015 12:53 pm
Reply with quote
Report this post
Hello,

I would like to know how to change that white background:
Image

Found out that it has something to do with this
Code: Select all
#gkPageContent > div {
    background: #fff none repeat scroll 0 0;
    box-sizing: border-box;
    clear: both;
    padding: 35px 45px 0;
    width: 100%;
}


located in game's template.css. I don't know how or where to override that correctly so that changes won't affect other parts of the website. Any suggestions are welcome!

Kind regards
User avatar
Fresh Boarder

GK User
Wed May 27, 2015 5:34 pm
Reply with quote
Report this post
Hello,

In your case the safest will be creating a page suffix for com_kunena under template settings -> Features -> page suffixes and then adding in the template settings -> advanced settings -> custom CSS code the following code:

Code: Select all
.YOUR_KUNENA_PAGE_SUFFIX #gkPageContent > div {
    background: transparent;
}
User avatar
Administrator

GK User
Wed May 27, 2015 5:53 pm
Reply with quote
Report this post
Hello dziudek,

that works fine, thank you very much!

Kind regards
User avatar
Fresh Boarder

GK User
Mon Sep 21, 2015 11:50 am
Reply with quote
Report this post
Hello again,

I noticed another issue. Clicking on last post won't open the link:
Image
Url: http://ikarus.bplaced.net/joomla/index.php/forum/index

Google search told me that this could be an joomla template issue js conflict.
Could you please help me?

Kind regards
User avatar
Fresh Boarder

GK User
Tue Sep 22, 2015 10:21 am
Reply with quote
Report this post
Please try to remove the following code fragment from gk.scripts.js:

Code: Select all
// smooth anchor scrolling
      jQuery('a[href*="#"]').on('click', function (e) {
           e.preventDefault();
           if(this.hash !== '') {
               var target = jQuery(this.hash);

               if(this.hash !== '' && this.href.replace(this.hash, '') == window.location.href.replace(window.location.hash, '')) {   
                   if(target.length && this.hash !== '#') {
                       jQuery('html, body').stop().animate({
                           'scrollTop': target.offset().top
                       }, 1000, 'swing', function () {
                           if(this.hash !== '#') {
                               window.location.hash = target.selector;
                           }
                       });
                   } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
                       window.location.href = this.href;
                   }
               } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
                   window.location.href = this.href;
               }
           }
       });
User avatar
Administrator

GK User
Tue Sep 22, 2015 11:46 am
Reply with quote
Report this post
seems to work. thak you very much!
User avatar
Fresh Boarder


cron