Static content in GK Intro widget

Modern, responsive, unique and elegant one-page WordPress theme to showcase your creativity
GK User
Thu Oct 17, 2013 3:57 pm
First of all I would like to thank you for you professional and elaborate themes.

And I'd like to ask you how to add static content, for example

http://www.bkosborne.com/jquery-waterwheel-carousel this plugin into intro widget next to title.

Is it possible?

I saw how implemented static title, but it's not suitable for my case.


P.S. Sorry for my bad english.
User avatar
Fresh Boarder

GK User
Fri Oct 18, 2013 12:15 pm
pls help
User avatar
Fresh Boarder

GK User
Sun Oct 20, 2013 6:46 pm
Hi,

Unfortunately, you can't add another widget/plugin to GK Portfolio Widget, to add some extra content, you have to edit Creativity/gavern/widgets.portfolio.php file and add some custom code.

You can also add your widget to Header widget position (before GK Portfolio widget).
User avatar
Moderator

GK User
Wed Oct 23, 2013 4:05 pm
Implemented this feature.

Firstly, I add div block in widgets.imageshow.php
Code: Select all
 
...
// arrows      
if($pagination == 'on') {               
echo '<div class="gk-is-prev-btn"><i class="icon-angle-left"></i></div>';
echo '<div class="gk-is-next-btn"><i class="icon-angle-right"></i></div>';
}
echo '<div id="fg">test</div>';                         
// preloader
echo '<div class="gk-is-loader"></div>';
// the last wrapper
echo '</div>';
echo '</div>';
//
echo $after_widget;
...


Then add this css code
Code: Select all
#fg {
    z-index: 15; increase until our block become visible
    position: absolute;
    top: 0;
    left: 0;
}


O/R you can add widget area
if ( gk_is_active_sidebar('in_intro') ) {
gk_dynamic_sidebar('in_intro');
}
more you can find here


By default your div block shows straight away you refresh the page instead of show 'loader'.

So you have to modify aforementioned css code
Code: Select all
#fg {
    z-index: 15; increase until our block become visible
    position: absolute;
    top: 0;
    left: -5000px;
}


And add this code to gk.scripts.js in jQuery.load funtion.

So we'll see our div block only when loader is done.
User avatar
Fresh Boarder

GK User
Wed Oct 23, 2013 8:30 pm
Thanks for sharing your solution, I'm sure it'll be helpfull for other users. (It seems that you forgot about last part of the code - in gk.scripts.js)
User avatar
Moderator


cron