Wordpress Website Frontend Google Translate Automatically - wordpress

I have wordpress site in English, i want to translate whole site to swedish using Google translate automatically when site is loading,
but i don't want to show any language selector on font end.and also don't want to show the google translate bar.
i search around 2days but can't got a answers.
is there any wordpress plugin for do this kind of magic.
thank you

You can get code for specific language from here https://translate.google.com/manager/add
and select only "Swedish" add code to your site. Using javascript or jquery select the langague from select box after loading page and make the select box display:none;
$(document).ready(function(){
$("#google_languaes").val(1);
$("#google_languaes").css({display: "none"});
})

Related

WP Bakery: how to insert dynamic url in Icon element URL (Link) box?

On my website I've a theme that uses WP Bakery. I'm now adding some Icons and I'm running into an issue with the URL (link) setting of the Icon element. (It's the same URL (link) setting as with the Button element.)
Is it possible to use some kind of a shortcode in this URL (link) setting?
For example, I want to make one of the icons a icon to logout but with a correct logout link (so including the wpnonce).
I've already tried a default WP shortcode but I reckon I need to address an WP Bakery function instead... but I can't find the info about that.
Is there anyone who can help me?
In the past I've been creating dynamic URL for the WP menus where I used a construction like /%loginout%/ for the URL, and %loginout% for the label. Is something like this possible within WP Bakery elements?
More info on the Icon and Button elements and the URL (link) can be found on this page: https://kb.wpbakery.com/docs/learning-more/content-elements/ But, so far, that doesn't steer me into any direction at all.

How to integrate TinyMCE with WPForms

I am trying to integrate TinyMCE with WPForms inside the WPForms Blog Post Submission plugin.
I inserted an HTML field with the code
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: '#wpforms-421-field_7'
});
This kind of works as TinyMCE is integrated but in a horrible layout. Also the Images that are uploaded using this are not actually reflected in the actual page.
How do I integrate TinyMCE with WPForms correctly so that Images can be inserted in the text area and saved in the submitted posts?
You are asking a couple of different questions wrapped up in your request ... let me try to address each one:
1 - TinyMCE looks odd in the rendered page
The menus, toolbars, and statusbar of TinyMCE are part of the main web page that loads TinyMCE. As such if you are loading CSS onto the page that impacts these elements you can get to odd visual results like this.
I would use your browser's dev tools to sleuth out what CSS is impacting things.
2 - How do I upload images using TinyMCE?
You have not given us any details at all as to how you have tried to allow users to upload images via TinyMCE. There is an insert image option that you can expose via the image plugin but it requires some back end coding to receive the image and process it.
https://www.tiny.cloud/docs/plugins/image/#image_uploadtab
https://www.tiny.cloud/docs/plugins/image/#file_picker_callback
One additional question on this - Wordpress already has a media library and a UI to interact with that while using TinyMCE to create content - why are you trying to do something outside of WP's own media library?
It seems the author want TinyMCE in place of the textarea when creating Form for submission of Blog Post using WPForm.
Image: Source: https://wpforms.com/how-to-allow-users-to-submit-blog-posts-on-your-wordpress-site/
The problem is WPForm does not come along with the TinyMCE especially for the post content. You will probably get SCRIPT error or UI problem. You can use different plugins other than WPForm. Else write some custom code particularly for the Post Submission Addon found with WPForm.
You must to set Wpforms as "No styling" and check "Load Assets Globally"

Adding a link from an image in wordpress

This seems to be more difficult than it should be.
All I would like to be able to do is add a link from an image on my wordpress site to an external website.
Using the normal media library tools this doesn't seem to be possible so I got the plugin WP Gallery Custom Links
However, even though I added the external link to the Gallery Link URL it still doesn't link.
Is there a more straightforward way to embed a link into an image?
Here is a screenshot of the image editing page:
If you are trying to make an Image clickable and bring you to an external site, click the image, click Edit, under Display settings select link to, custom url, and there you go.
Another way is, when you are adding an image to your site from your Media Library within Wordpress, there is an option "Link to" under Attachment Display Settings.

LinkedIn Follow Company and Share Plugin buttons language issue in WordPress

I created a Linkedin Follow Company button here: https://developer.linkedin.com/plugins/follow-company.
However, when I add it to my WordPress site, it shows up in English, regardless of what language I set. The code contains lang: da_DK to show the button in Danish, but it's still displayed in English.
When I test it outside of WordPress, it shows up in the right language, which suggests it's a WordPress issue, but WP can display buttons from Facebook and Twitter in the right language, which suggests it's a LinkedIn issue.
How can I make the button appear in Danish on my WordPress site?
Try with this plugin : https://wordpress.org/plugins/wpsite-follow-us-badges/screenshots/
It provide option to select language also.
I had a similar issue. My webpage had the Company Profile plugin in header, and the Follow Company plugin in footer. I was wrongly including the platform.linkedin.com/in.js script twice, the first occurence did not include the lang parameter.
Be sure to include platform.linkedin.com/in.js once in HTML code with the right lang: da_DK param value.

Option to remove section from certain pages in wordpress

I am currently creating a wordpress site. Some pages will need a section with some images at the bottom and other pages won't. But this needs to be controlled via the backend
So when you go on that specific page in the wordpress backend, there will need to be a check box to decide whether to display the section or not.
It has to be this simple as my client is not tech savvy in the slightest.
Is there a plugin to maybe achieve this?
Thanks in advance
Danny
Install the Advanced Custom Fields plugin. This way you can do a simple conditional along the lines of if(get_field('myCheckbox'){ // add your images };
Further information can be found here: http://www.advancedcustomfields.com/resources/field-types/checkbox/
Update in response to comment
For a radio button, the code should be pretty similar - something like:
$theField = get_field('name_of_radio_button_goes_here');
if($theField == "enabled"){
// THE HTML YOU WANT TO BE HIDDEN/SHOWN GOES HERE
}
No need to add display:none or anything like that - unless "enabled" is selected for the page in Wordpress, then nothing will display for the page you are on

Resources