I'm trying to change the english text "By submitting this form, you hereby agree that we may collect, store and process your data that you provided" in the bottom of the page with something else in Arabic. I'm using Wordpress with Woocommerce plugin and divi theme builder.
this is the url of the page i'm trying to edit (https://blockchainarabi.com/checkout/)
There are 2 methods; using plugin and manually! Change a text on a woocommerce website using code is a manual method!
I'd suggest, use Google Fonts and text for your site. As there are numerous beautiful fonts that Google provides which improves user experience and helps you to boost user engagement.
Just follow the below-mentioned steps:
Steps:
Step 1: Find the fonts that you want to use on your website.
Step 2: Then, select the fonts by clicking on a plus sign (+) icon, You will see this in the top right section of every font family box.
Step 3: A Family Selected tab will appear on the bottom side, Just click it there and then click on customize and then, modify and select the different styles of fonts.
Step 4: Then, Go to Embed and copy the Standard field URL. You can see in the image.
enter image description here
Step 5: Next, in the process is to add the following code into functions.php file via FTP client.
function wpblog_add_google_fonts() {
wp_enqueue_style( ' wpblog_google_fonts ', ' https://fonts.googleapis.com/css...', false );}
add_action( 'wp_enqueue_scripts', 'wpblog_add_google_fonts' );
then save it.
See, it's that simple!
Note: Don’t forget to change the URL link with your own
Related
i have something planned and i don't really know how and what kind of technologies i can use for it.
I want to create a website where I can use a CMS system or manually create a template. I make this template available to the user and he can change or edit content in it. For example, if I define a div that takes 20% of the page. Then the user can color the whole thing with a color code. Or if I define an H1, then the user can insert a title there. At the end he can export the whole thing as PDF.
Or
I create a contact form with many fields. The customer can fill in everything, e. g. address, telephone number . . . he sends this form and I define internally where the fields have to be positioned in a PDF. And especially how the whole thing should look like (CSS). Is that possible?
Is there such a thing already? A plugin for any CMS system like wordpress?
I don't think that the first option will work.
You will need a form that the user will fill in.
You can use WordPress and a form builder plugin, such as Contact Form 7.
Now, regarding the exporting into PDF...do you have any programming knowledge?
If you can work with PHP, then you can use DomPDF library to export all data into a PDF file.
You can also see a similar thread here Exporting form results from Contact form 7 to PDF (fPDF)
If you don't have any PHP knowledge then you will have to google and see if there is a plugin that does what you want. You may have to use a different form builder depending on that plugin.
I'm trying to work out how to edit the download button link that sits directly underneath the order title, in the order details section of the thank you page.
So if you make an order in Woocommerce, for a product that is downloadable, you get a "Thank you. Your order has been received" box, then under it, you get an "Order Details" box.
In that order details box, it shows each product ordered, and if that product is downloadable, it shows a small "Download: Product name" link under the product title.
I want to hook/filter into that download link, and edit it ( changing the text mainly, but also restyling it).
I've tried finding the action that adds it, but can't seem to work out where it's based, and then how to filter into it to change it's appearance. I did also try to add a function that include a different download link using woocommerce_order_item_meta_end, then hide the old link, but can't work out how to get the product download link URL either.
Any help would be great, thanks!
There doesn't seem to be any filters to do that so you'd need to copy the \templates\order\order-downloads.php template file into your child theme folder and make modifications to the following line in that file.
case 'download-file':
echo '' . esc_html( $download['download_name'] ) . '';
break;
I am currently attempting to configure the settings of attachments to make it required and only one attachment attached to a post but all my changes did not have any good results.
I have looked into adding an action to attachment_register function and some documentation about attachments in Wordpress but still no positive results.
Personally, I would go with the ACF (Advanced Custom Fields) plugin to accomplish this.
You can use the plugin add a new required media upload (picture/file) meta field for posts.
In the settings for this new Custom Field group, you also use the plugin to remove the default "featured image" field from the edit post screen, to force the user to use your new required media upload function.
All that said, you will probably need to make adjustments to your theme template files to use the ACF functions to display the data on your site. This will probably be pretty straight forward as long as you have ability to alter you theme template files.
Hope that helps!
Building on Mike C's answer in regards to using ACF (Advanced Custom Fields) with a step by step walkthrough of how to achieve such a thing.
Install the Advanced Custom Fields Plugin
Once Activated you will see a new section in the Wordpress Left Menu
Click Custom Fields
First we need a field group, click Add New
Name this something relevant such as "Page Attachment"
Now Click Add Field and Fill out the fields, example below:
Field Label: Upload Attachment
Field Name: page_attachment
Field Type: File
Return Value: If you want someone to click a link to download, select File URL
Scroll Down To The Section Titled Locations
You mentioned that this should be on posts so I would recommend the below selections:
Post Type -> Is Equal To -> Post
Click Save/Update
Go To A Post, you will now see a button that reads Add File, you cannot update/create a post without having a file attached.
This is the admin work completed now we need to make the file appear in the post.
Now if you want the file to appear at the end of the post, under the header or even in the sidebar that is fine. Simply add the following code:
<p><a href="<?php the_field('page_attachment');?>" title="<?php the_title();?>">
Download Attachment
</a></p>
Obviously this is just a link that it echos, so this could be added to an image to make it seem a little more stylish, it's up to you. But this is the simple way of adding a file.
Now if you wanted to add this into the page content midway, you would either need to make a shortcode function to display it. Or you could add something like:
Download Now
And then add the following to the bottom of your post:
<p id="attachment"><a href="<?php the_field('page_attachment');?>" title="<?php the_title();?>">
Download Attachment
</a></p>
This means, whenever some clicks on the link that takes them to #attachment, it will jump them down to the bottom of the post where the download link is.
Any questions, let me know.
I have been having some hard times trying to configure my website.
I have been looking left and right on the internet for how can i rename certain fields on my webpage. I came to a point were i dint find any more snippets that i can use. If someone is kind enough to hekp me with the snippets for the bellow problems i would be extremly grateful :D
1) Login/ Registration form
i have renamed the Login and regitration form, but i cant rename or completly remove the recover password button ( i tried 4-5 snippetes so far and non worked)
2) On my Account page i did some editing with the gettext snipped, but i wasn't able to translate the following word "Logout" and "edit your password and account details"
3) i don't know how to translate the "search producs", the content of the box
4) i dont know how to rename the "apply coupon" button and the content of the box. For this one i used some snippets, but nothing happened :(
bellow, you can see my website
http://www.toner.eurofinconsulting.ro/wp/
Making adjustments like you have referenced are fairly simple to do in Woocommerce. Having said that, one of the first things to understand is how to correctly make changes to Woo template files. The easiest thing to do is to copy the entire directory /wp-content/plugins/woocommerce/templates to the root of your theme in a directory named YOUR_THEME/woocommerce. This now allows you to adjust any of the templates without touching files in the plugin directory (which you should NEVER do) while retaining the ability to update Woocommerce as updates are available.
Now, to make your changes:
Login/registration form - All changes you need can now be made in wp-content/themes/YOUR_THEME/woocommerce/my-account/form-login.php
Changes for this can be made in wp-content/themes/YOUR_THEME/woocommerce/my-account/my-account.php.
Changes to the search form - If this is using the Woocommerce search form, try making your changes in wp-content/themes/YOUR_THEME/woocommerce/product-searchform.php. If it is not there then try finding the search template used by your Wordpress theme.
I have add some dashboard pages to my conrete5 install. One of pages has a form that needs allows the user to upload an image. Are there any libraries for uploaded images of shall I do it in native PHP? I found this in the documentation but I don't think its what I want.
I thought I'd ask before I started and to see if anyone else has done anything like this before
I would recommend making use of the built-in Asset Library helper. This will add a field to your form that allows the user to access all of the images in your site's File Manager, and upload a new image if necessary. Here's the relevant page in the concrete5 documentation.
Let's say you wanted to add a field to your form called "photo". Here's an example of what you would add to the part of your dashboard page's view where the form is rendered:
$al = Loader::helper(‘concrete/asset_library’);
$al->image('photo', 'photo', 'Select a photo', $photo);
In this case, $photo is used to represent the currently-selected image, if known.