Widget area falling apart

Responsive WordPress theme for musicians, bands, artists - easy to configure and various theme features.
GK User
Thu Jul 24, 2014 1:22 pm
Hy after i find the "how to add widget areas" manual Iwas trying to make it happen.

The first problem is when I edit the widgets.json file (using notepad++) and uploaded it all the widgets gone.

If a edit the json file i would see immediatly the extra widgets on the wordpress admin interface?

Or the first step is not that easy?

I noticed that on an older topic that I need to edit the after.php as well, but it didnt included in the documentation:
http://www.gavick.com/documentation/wor ... ess-theme/

Can someone walk me trough this?
User avatar
Junior Boarder

GK User
Sat Jul 26, 2014 3:13 pm
Hello,

Please read carefully this article: http://www.gavick.com/documentation/wor ... ess-theme/ - it shows how to add the widget area in the JSON file and in the php file - you can put the code in the after.php, before.php or other theme php file - it depends from your needs.

If all widget areas disappeared after your changes it means that you have made a syntax error - please check your file with this validator: http://jsonlint.com/
User avatar
Administrator

GK User
Wed Aug 06, 2014 11:05 am
Thanks i will try that.

One athore question. Is that possible to modify the gk news show pro widget? I use the default article wrapper.

The default shows the title, some text and the thumbnail picture + the read more button. I want to reorder it to thumbnail, title, text and read more button.

Site: www.lelekmagazin.hu
User avatar
Junior Boarder

GK User
Thu Aug 07, 2014 8:58 am
You can reorder these elements in the article layout tab - you can do it with drag'n'drop or by the ordering select field (depends from the used version of the widget).
User avatar
Administrator

GK User
Thu Aug 07, 2014 5:46 pm
This is amazing how simple it was :D Thanks man
User avatar
Junior Boarder

GK User
Thu Aug 07, 2014 5:52 pm
Somethig is not right. When i do the picture, title, text version its falling to pieces

Heres a sample :http://rhythmnjuice.hu/ltv/

This is where i test the changes before appling tot the actual site.
User avatar
Junior Boarder

GK User
Fri Aug 08, 2014 12:01 am
Found it. The artical had a position setting in the image part.
User avatar
Junior Boarder

GK User
Mon Aug 11, 2014 7:01 am
Okay the json file is now perfect, but still have problems with the index.php file. Iam not a pro coder so a can't decide where to put the codes for the new widget areas. I made 3 new That is the continue of the Bottom IV widget, like V, VI and VII. Can you make send me a sample file or something like that?

It would help a lot :)

Maybe an attachment would be handy if it was in the tutorial with the "newone" widget area.
User avatar
Junior Boarder

GK User
Tue Aug 12, 2014 6:51 am
Hi,

In this case, you should use RockWall/layout/after.php file (not index.php) and after this fragment:

Code: Select all
<?php if(gk_is_active_sidebar('bottom4')) : ?>
<div id="gk-bottom4" class="gk-page widget-area">
   <div>
      <?php gk_dynamic_sidebar('bottom4'); ?>
      <!--[if IE 8]><div class="ie8clear"></div><![endif]-->
   </div>
</div>
<?php endif; ?>


add e.g. bottom5 area:

Code: Select all
<?php if(gk_is_active_sidebar('bottom5')) : ?>
<div id="gk-bottom5" class="gk-page widget-area">
   <div>
      <?php gk_dynamic_sidebar('bottom5'); ?>
      <!--[if IE 8]><div class="ie8clear"></div><![endif]-->
   </div>
</div>
<?php endif; ?>
User avatar
Moderator

GK User
Wed Aug 20, 2014 9:16 pm
And its working. Thanks again. I must say that there is great themes and great support in here.
User avatar
Junior Boarder

GK User
Wed Aug 20, 2014 9:21 pm
Is it possible in gk image show widget to open a link in a new tab?
User avatar
Junior Boarder

GK User
Thu Aug 21, 2014 6:44 am
Hi,

Yes, you should edit RockWall/gavern/widgets.imageshow.php file and change this fragment (line 98):

Code: Select all
echo '<a href="'.$titles[$i].'" class="button inverse">'.__('Get more details', GKTPLNAME).'</a>';

into:
Code: Select all
echo '<a href="'.$titles[$i].'" target="_blank" class="button inverse">'.__('Get more details', GKTPLNAME).'</a>';
User avatar
Moderator

GK User
Thu Aug 21, 2014 8:34 pm
Perfect :) I think I have the last question for now.

Is it possible to make the sidebar widget area go all the way down to the footer widget area??

Like this: http://lelekmagazin.hu/wp-content/uploa ... _areas.png
User avatar
Junior Boarder

GK User
Fri Aug 22, 2014 6:53 am
I’m afraid that modifications such as this require extensive changes to the theme’s code (html structure and css code); I do apologize but such large changes are custom work that are beyond the scope of our technical support.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.