I'm new to concrete5.
I need some pages with some different pdf files attached to them.
It seems in Composer - Page, the editor can only insert images.
I think 'add block content' is not proper, because the pdf files should just appear on certain pages.
Any suggestions would be appreciated.
Thank you!
You should be able to insert files (not just images). But if it's not working, try adding a "File" block to the page.
Related
This may be a strange question, but I want to use 2 of the same buttons on my mobile checkout page in woocommerce. I think this is much better for the user experience because the button to "place order" is pinned to the bottom of the mobile browser so as you can see in the image below.
In my screenshot i made a circle with 2 inside, its on the end of all fields. I think it would be great to create an extra button there.
Is that possible and can that work together? And in what file do I need to edit this?
Really thanks for any help or advise!
As you can see the code for the button is in the next template file
https://github.com/woocommerce/woocommerce/blob/163aaa029dc57b1b04f6ca583bc04c4c4e1b6767/templates/checkout/payment.php#L51
How to Edit Files
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.
Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php
The copied file will now override the WooCommerce default template file.
Be aware that when moving, the button must still be between the <form></form> elements
I'm using wordpress 4.9.6 version it's not showing page template option. I reinstalled wordpress and using default themes and plugins. I don't know the exact reason for this. Please help me out of this. Tell me the reason why it occurs.
Your theme must have template file. The default WordPress themes does not have that by default.
You need to create a new .php file, name it whatever and add this following code in the top:
<?php
/**
* Template Name: your template name
*
*/
One of the easiest way to create a Template, is as follows:
Creating the Template file:
Open up your preferred Text Editor. I would recommend Notepad++ for its 'best of both worlds' feel. It offers a greater range of tools than 'Notepad' whilst not being too overwhelming.
Next, you will need to enter the following code:
<?php
// Template Name: Name of Template.
?>
Then head to File > Save as ... and enter your desired file name. Then within the 'Save as type' dropdown menu, select 'PHP Hypertext Preprocessor file'. This file type will be appended with a series of file extensions, within a set of brackets.
Go ahead and select 'Save'.
Of course, don't forget to enter your relevant Template coding and save as you go along.
Upload to website:
With your Template file completed, you will now be ready to upload this to your website. One of the easiest way to do this, is as follows:
Download FileZilla. If you are unsure of which version to download, stick with 'Download FileZilla Client'.
Once downloaded and installed, open the program. Then login, with your site's credentials. If you are unsure of these, you will need to seek assistance from your hosting provider.
By now, you should see a screen like:
The above image has a lot of blank spaces. If you are logged in, these blank spaces will be populated with various folder and file names etc. Referring to the above image, take take of the contents within the red box. This text bar may be populated. Just enter '/httpdocs/wp-content/themes'. Alternatively, you can scroll through the Folders manually.
All you then need to do, is identify the relevant Theme and drag over the desired template file and drop it into the relevant theme's folder.
When it comes to WordPress themes, you may first want to familiarise yourself with Child Themes. Simply put, if you are not the Theme Author, you will need to create a Child Theme. If you modify the Parent theme, any file modifications will be lost. Whilst this wouldn't be the case, in this instance, you may wish to take this opportunity in understanding Child Themes and implementing said themes now, in preparation for future modifications.
The solution in my case was to add index.php file in theme's root folder.
It appears that adding my theme into Git repository (with Git Desktop) and selecting default .gitignore file of Wordpress incorrectly ignores the index.php file inside theme's root folder, so the file was never uploaded to the server after deploy and WordPress does not recognize the theme as valid one - hence the missing drop-down with template selection.
I'm having problems with the on page image uploader. Uploading images works fine. But when i'm on a page and I want to add an image there, I don't see the images that are already uploaded to the library. As a result, images get uploaded multiple times and now I have multiple copies of the same image in my media library.
Is anyone here familiar with this problem? I would really appreciate the help!
screenshots of the overall settings of my custom fields:
Check this screen-shot and change setting according to image.
You can find this setting here:-- wp-admin --> Custom Fields --> Edit Your Field Groups --> Select Field --> Find Library
Hope this will help you...
Solved it!
There was an error in a plugin I was using: Polylang plugin
In the settings there was an error saying that not every page and/or post had a language setup. Selected option to set standard language for every page and post and everything was fine!
I am in the process of heavily customising a WordPress theme. The theme is quite complex so it is hard for me to identify how and where data is rendered from all the different files in the theme.
Is there a plugin for a browser which tells me what file in the theme a specific element is generated from?
please have a look at these plugins.
It will definitely help you.
[1] http://wordpress.org/extend/plugins/debug-bar/
[2] http://wordpress.org/plugins/debug-bar-template-trace/
Just install in your theme, and go to the page and trace it through this plugin, it will show you, from which file's code is executing right now...
Thanks.
The thing you'll find most useful, or at least the thing I've always found most useful, is the Wordpress template hierarchy.
It's a graphic that shows which files Wordpress will attempt to find to render a page of the site, for instance when showing a page, rather than a post, wordpress looks for a file called page-{id}.php (where {id} is the numerical id of the page) first, then page-{slug}.php, then page.php then index.php.
Using the hierarchy flow diagram, you can see which files Wordpress would try and in what order, and by comparing this to the files in your theme, you can quickly track down which file it is.
http://codex.wordpress.org/Template_Hierarchy - Scroll down to the image, it's the most useful bit.
I am developing a wordpress plugin and I have a problem with image uploading. I need do something like what a custom-header contain where I can upload image and use it. I try to use http://goo.gl/JHna9 It upload image successfully but I need something more. I need to find out way how tell to wordpress that uploaded picture was for my plugin and next get all pictures uploaded through my plugin.
Any ideas?
Thanks
you have several choices.
Use the same upload function to create a DB entry (But I would not reccomand it if it is not absolutely neccessary)
use the same function you are uploading to create a hidden custom field - associating it somehow (with a key) to your plugin (after all - an attachment is only a taxonomy for some kind of post - and has it´s own metadata. )
put your attachments in a different folder (can be usefull - depending on what you want to do)