I am working on a site in which I have to give the option of 3 languages on the front page.
I searched a lot and was successful in translating the theme using .pot files but it is translating only the default strings of Wordpress.
I want to translate the post/page contents too which we are adding from wp-admin.
I don't want to do it with any Google translator or sidebar plugin. I want to offer this option in the index page.
Any help will be welcome.
Consider using i18n plugins such as qTranslate
Related
I am building a personal website with Photofocus theme (https://catchthemes.com/themes/photofocus-pro). I completed the website design, now designing a blog page. Actually, I need a custom theme for my blogs ie 4 column thumbnail design. Please see the design below.
Design website link: https://blog.bitdiscovery.com/
But Photofocus blog theme looks different(See image attached)
Following are my doubts?
How to customize the Photofocus blog theme to meet my requirement?
Do I need to manually edit PHP files to achieve the design?
Can I purchase a different theme for the blog only(ie my desired design is
also a WordPress site - https://blog.bitdiscovery.com/)
Suggest me the ideal solution?
Your help is much appreciated.
Thank you.
From the Theme Instructions
You can customize this theme using cool additional features through Customizer at "Appearance => Customize" from your WordPress Dashboard.
If needed, you could contact them as mentioned on this page to customize it for you.
It should be possible to use another theme for your blog when 1) The site is on a subdomain (and thus a separate WordPress installation) or 2) when the theme provides a "blog" template option (but that would be only partially different).
If you are looking for a flexible, totally customizable solution, I can recommend Oxygen Builder. But you'll need some knowledge about HTML/CSS/PHP for it.
I am using Loco Translate to translate wordpress and woocommerce. Great plugin, but unfortunately some string translations are not visible/working on the frontend at the checkout page and cart. Could this be a child team problem?
Strings are know in Loco Translate and correctly translated, they are only not showing up at frontend.
Translation String issues:
Have a coupon? Click here to enter your code.
Flat rate:
Subscribe to our newsletter
Site www.narwal.shop/checkout
Help is appreciated.
Go to wp-content and uploads directory. create a new directory and name it as same as the plugin name. then create a new directory and name it languages.
now upload your .po and .mo files in it.
the problem is solved!
Force WP to load the language file from languages/loco/themes/.. directory, like this inside functions.php:
add_action ( 'wp', 'load_translations' );
function load_translations() {
load_theme_textdomain( 'theme-name-here' );
}
Update: you should contact the creator of the (child) theme.
Every single component that displays text (i.e.: almost all of them), including themes and plugins, need to have included multilingual support for it to work.
Woocommerce does it, but you might have other components that do not. If you have a custom theme, that would be the first thing I'd check.
Unfortunately, if this is the case there is nothing you can do about it other than not use it, accept that that part of the site will not be translated or ask the developer who made them to put in the extra work to add multilingual support.
See also: https://localise.biz/wordpress/plugin/child-themes
In my case it was a wordpress language problem. I resolved this by changing it from English to my target translation language. To achive this in your wordpress panel go to: Settings -> General -> find language and change it.
I manage the website www.frijolichtreclame.nl and I've been working on making the URLs of the portfolio page and the projects beneath it the same for SEO purposes:
.nl/projects as the page where everything is combined, .nl/projects/project-name for each specific project.
But the layout on the .nl/projects page is not what I want it to be. Now I want to change that, but the default WordPress formatting always overrules my own wishes. Is there a way to change the layout to whatever I want? The website is made using Divi, but the Divi developers say these changes cannot be done.
Hope you can help me out!
I am building a plugin for the first time and I have setup my rewrite rules to call a PHP file I have located in my plugin folder and this is working but all I have it output just now is "test"
I wanted to ask, is there is a way of pulling in the existing theme and using this as the basis for the page, then I can have my plugin just output the page content area so to speak.
My plugin is quite big in terms of the amount of data it handles so I would like to be able to use a menu link to the aforementioned file and this file can then output all the sub pages of content but still using the default theme (theme I have made) and fill the content area only is this possible and if so is there anything to explain this already available because I couldn't see it.
Any help with this would be much appreciated.
Edit: I have tried including a file from my current theme but this will give me a 500 error so I assume its not as simple as this.
Have you thought about using custom post types for your plugin content rather than relying on custom tables and separate code?
Other than that, you could use a shortcode (just one) and have users insert that into a regular WP page, the shortcode then displays all of your various plugin stuff.
It's hard to be more specific without understanding why you've done it this way.
I've created an HTML page as part of my website which I would like to use as a template for news articles. The page has all the things it needs, it just needs to display the correct news article in it.
I installed WordPress on my webserver and now wonder how I can have wordpress publish articles using my HTML page?
Is this even possible since WordPress works with php?
thanks
What you are talking about is themes. Wordpress allows you to create a theme for your installation so it displays using your html/css (more or less)
The way I do this is copy the default theme and make changes in there, and then you can switch to your new theme in your settings.
Edit: in addition, you can also load up wordpress on any page using:
include( '/path_to/wordpress_install/wp-load.php' );
This will allow you to use wordpress functionality on any page of your site.
just edited the single.php file by pasting the desired html code and leaving the loop code there where the text needed to show up.
didn't need to break up the page in a header, body and footer. Left out sidebar for now, but will put it back after I edit it properly.