wordpress shortcode not working

Popular automatic website translation tool

wordpress shortcode not working

Postby pablo » Thu May 19, 2011 10:45 am

The shortcode "[GTranslate]" is not working with the last update in wordpress.
Please help.
pablo
 
Posts: 2
Joined: Thu May 19, 2011 10:42 am

Re: wordpress shortcode not working

Postby Edvard » Thu May 19, 2011 1:26 pm

Cannot verify the issue, it works for me.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby pablo » Thu May 19, 2011 9:20 pm

Hi Edward,
All the other shortcodes are working wright, and I can't find the solution. The widget is working fine, but the shortcode act like plain text. I thought could be something about rewrite, but if gadget is working fine I think is not the problem. Any idea?
pablo
 
Posts: 2
Joined: Thu May 19, 2011 10:42 am

Re: wordpress shortcode not working

Postby Edvard » Fri May 20, 2011 1:25 am

You can try [gtranslate] or [GTranslate] may be you have a typo?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 3:58 am

Good evening,

same issue here... I added shortcode [GTranslate] to my left sidebar, but only the plain text is showing up. Also tried [gtranslate] after I found this thread.

The widget itself is completely killing my sidebars, so I decided to leave it off my bars and use the shortcode instead.

Inside an article the shortcode works properly, just not in the sidebars...

Example: http://www.mikaversum.com/blog

Any idea would be appreciated ;)

Cheers,
Flash
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 6:52 pm

You need to use the widget in your sidebars instead. Enable it and let me know, so I can see what it breaks.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 7:16 pm

Ok, just moved it into the right sidebar.
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 7:24 pm

OK, there is a conflict with your CSS stylesheet:

1. You need to specify that #left h2 a {color:#ffffff;}
2. #left a.gflag img {padding:1px !important;}

You can place the code inside style.css file of your template and it will solve the issue.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 7:37 pm

Hi edo,

I added the code in different ways to my stylesheet but without any change.
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 7:39 pm

I think that you forgot about your browser cache ;)

Refresh your site with Ctrl + F5
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 7:42 pm

Unfortunately not ;) To make sure I re.tried, also in different browser but situation is still the sam
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 7:44 pm

Here my css for the left sidebar:

/* Left Sidebar */

#left {
width: 179px;
float:left;
margin: 0;
padding: 0;
overflow: hidden;
}

#left h2 {
color:#ffffff;
background: #65111e;
font-family: verdana, "Microsoft Sans Serif", Times, serif;
font-size: 8pt;
padding: 3px 6px;
margin: 0px;
margin: 0 0 10px 0;
border-bottom: 1px solid #fff;
}

#left h2 a {color:#ffffff;}

#left p {margin:0 6px 0 12px; padding: 0;}

#left a {color: #65111e; text-decoration: none; margin: 0; padding: 0; line-height: 14pt;}
#left a:hover {color: #333; text-decoration: underline;}
#left a.gflag img {padding:1px !important;}

#left ul{
list-style-type:none;
margin:0 0 12px 0;
padding:0;
}

#left ul li{
list-style-type:none;
margin:0 0 0 12px;
padding:0;
}

#left ul ul{
margin:0;
padding:0;
}

#left ul ul li{
list-style-type:square;
list-style-position: inside;
margin:0 0 0 12px;
padding:0;
color: #65111e;
}



#left ul li.recentcomments {
margin: 0 12px 0 12px;
}

#left ul li.recentcomments a{
line-height: 12pt;
}
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 7:52 pm

I have refreshed and it looks nice now.

However I have just checked and it doesn't work, since you have turned on the Analytics feature without having Google analytics installed on your site and also didn't select a correct main language for your site.

May be I do not understand what is the issue?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 7:57 pm

I have Google Analytics running, but just as code on the content page. I can try to install an extra plugin to test. Which one do you want me to install - the Google Analytics for WordPress by Jost de Val?
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 8:00 pm

When you will have the _gaq code installed on your site then you will turn on that feature in GTranslate. But meanwhile, what are you trying to get, were you able to get a nice look or not?

Are you able to see the changes when you access http://www.mikaversum.com/blog/wp-conte ... /style.css from your browser?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 8:13 pm

I do see the changes when I refresh and get the side code displayed... Also I see href="javascript:doGTranslate('de|en')" title="English" class="gflag"

where is this class "gflag" defined? I did not found any definition for it, so I played around with my CSS and the code snipet you gave me before... Probably an idea to have a deeper look into this...
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am

Re: wordpress shortcode not working

Postby Edvard » Sat May 21, 2011 8:30 pm

You can use FireBug on FireFox and you will be able to play and find the answers to your questions.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: wordpress shortcode not working

Postby Flash » Sat May 21, 2011 8:37 pm

Nevertheless, thanks for your help anyway... I will play around with it when I'm on nightshift. I'll let you know when I find out something senseful ;)
Flash
 
Posts: 8
Joined: Sat May 21, 2011 3:53 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: sadashiv and 0 guests

2GLux