How to change Button "MORE WORK"

Modern, responsive, unique and elegant one-page WordPress theme to showcase your creativity
GK User
Thu Jul 11, 2013 9:27 am
Hi,

How to change Button "MORE WORK"?

Thanks
User avatar
Fresh Boarder

GK User
Thu Jul 11, 2013 9:39 am
Please edit file:
/language/en-GB/en-GB.mod_news_pro_gk5.ini
find line:
MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO_LINK_TEXT1
and change its text.
User avatar
Moderator

GK User
Thu Jul 11, 2013 10:19 am
This folder and file no.
Maybe you mean it
\ languages ​​\ Creativity.pot ?
User avatar
Fresh Boarder

GK User
Thu Jul 11, 2013 2:37 pm
Sorry, my mistake.
You could either use poedit, load creativity.pot to it and translate missing words, or if that is too much work, You could take a shortcut and edit file:
/themes/Creativity/gavern/widgets.portfolio.php, and change:
Code: Select all
if($config['bottom_link'] == 'on') {
         if(count($jsondata) == 0) {
            echo '<a href="'.$config['bottom_link_url'].'" class="gk-load-more border bigbutton" data-text="false">'.__('More work', GKTPLNAME).'</a>';
         } else {
            echo '<a href="'.$config['bottom_link_url'].'" class="gk-load-more border bigbutton" data-text="'.__('See more', GKTPLNAME).'" data-toload="'.str_replace('"', '\'', json_encode($jsondata)).'" data-max="'.count($jsondata).'">'.__('More work', GKTPLNAME).'</a>';
         }
      }


to:
Code: Select all
if($config['bottom_link'] == 'on') {
         if(count($jsondata) == 0) {
            echo '<a href="'.$config['bottom_link_url'].'" class="gk-load-more border bigbutton" data-text="false">YOUR NEW TEXT</a>';
         } else {
            echo '<a href="'.$config['bottom_link_url'].'" class="gk-load-more border bigbutton" data-text="'.__('See more', GKTPLNAME).'" data-toload="'.str_replace('"', '\'', json_encode($jsondata)).'" data-max="'.count($jsondata).'">YOUR NEW TEXT</a>';
         }
      }
User avatar
Moderator

GK User
Thu Jul 11, 2013 7:22 pm
I prefer the first option, because I change the English words to your local language (WP is Russian).
Change in two places, but no changes. Can be recorded somewhere in the cache?
User avatar
Fresh Boarder

GK User
Sat Jul 13, 2013 12:50 pm
It is a widget, please go edit it in wp panel and save (without changing anything) - this should help.
User avatar
Moderator


cron