I have no knowledge in PHP and am reading up on it as of now. However, in the meantime I'm trying to make changes to the Wordpress posts editor HTML and CSS code, but I cannot find the correct file for this.
Does anyone have any clue on where I can find documentation or the file?
Here's the documentation you're after: WordPress Dashboard API
I highly recommended first check the hierarchy of wordpress.
https://developer.wordpress.org/themes/basics/template-hierarchy/
Related
I tried researching it but do not find a direct answer I am trying to move a kentico cms website to wordpress but would like to know if it is possible to copy the kentico theme design to then place it within my new wordpress website?
Thank you all feedback and suggestions welcomed.
Not without manually changing some parts around and adding the WordPress related functions, no.
While you'll probably be able to copy your CSS file, you will have to do the basic WP theme work, e.g. adding the informational comment to your style.css, make sure your header and footer call wp_head() and wp_footer(), add the functions to work with the loop to output content etc.
You can find lots of detailed documentation on creating themes in the codex.
I want to do something that is not offered in the basic theme options and would like to edit some backend code. Can someone tell me if this is possible to do via the online editor or if I need to create a local environment?
Here is the current menu showing articles on the site:
Current Dropdown Menu Image
What I am trying to do:
As you can see right now the menu is only displaying the title of the article. My goal is to display in excerpt from the article. This function is available for blog post on other parts of the site and I would like to make it available in the menu location.
Here is a list of the files I am able to edit online via Wordpress:
Available Wordpress Files Image
Is what I need to edit on this list? I know once I find where I need to be working I can figure this out. Since I am totally clueless about wordpress I don't know where to start.
Any help is greatly appreciated. Thanks
You can access the backend files. Here is an overview of what the different files are responsible for:
https://developer.wordpress.org/themes/basics/template-hierarchy/#the-template-hierarchy-in-detail
Here is a dedicate article for excerpts:
https://codex.wordpress.org/Excerpt
Hey so it is actually very easy to edit the theme files and view them through a plugin called Wp-Editor.
Just install it, activate it and go to Appearance > Theme Editor and then you will see your existing files in your theme.
Newbie here. I was following a video tutorial displaying custom taxonomies in WordPress. In the video tutorial it was showing how to edit the file single_product.php which is the custom taxonomy that was used in the video as an example, this file was in the directory wp-content/theme/current_theme. But as I check my installation directory I don't see it anywhere. I have research the WordPress codex and was mentioned that sometimes the custom post single.php file is not available for all themes. And that the single.php file should just be used and modified instead.
Can someone help me how to modify the single.php file to display the taxonomies on each custom post I have? or maybe point me to good reference? Any help is greatly appreciated. Thanks in advance! Cheers!
A wordpress theme must have at least 2 files:
style.css
index.php
All other files are optional. To understand which file is for which purpose, you can read this article "Template Hierarchy" and look this graphic. It helped me a lot.
To get taxonomies of a post, you can use get_the_taxonomies().
Okay so my problem is that, I am currently working on a website which is already been created using wordpress. My problem is that when you see the website page, there is all the data and everything is present. But when I come to the backend of the page in wordpress its not showing any content at all. I mean its like there has never been the data at all in this page. Its so confusing. Please answer me this. And kindly remember that I am not a good coder so anything that is related to coding please ellaborate it with examples.
I 've fixed it.
The problem is in charset of db.
Open wp-config.php file and just change charset to utf8 & comment the old one.
define('DB_CHARSET', 'utf8');
Thanks
Like the other commenters mentioned, you can also insert content into pages on Wordpress with pages on custom themes.
Remember to back up your site before you make any changes.
Try to change your theme by going to 'Appearance->Themes' in the Wordpress admin window and activating a new theme. Head to the page in question and see if the content is still there. If it isn't, it's being added in a custom theme, which is probably what's happening.
If that's all you need to know, you're all set - otherwise, you can use this process to find what's creating the content:
Go to your Wordpress installation directory (you'll know you're there when you see folders like 'wp-admin' and 'wp-content'), then go to 'wp-content->themes' and see what themes you have installed. You can dig around in the php files there to find the content being created. You'll need to play around with PHP if you want to learn more from there.
I was wondering if it was possible to use the advanced custom fields - wysiwyg editor as the default editor for the main content and let yoast read that instead of the default?
Or if that isn't possible then if it is somehow possible to dublicate the content from acf to the main editor.
Or if there is any other way please help.
Thanks
This answer is a bit slow in coming, but we had the same exact question and decided to build a plugin to do this:
http://wordpress.org/plugins/ns-seo-custom-fields/
We just released it and found others looking for a solution like this question and hope that it's helpful to the great WP community.
There are a couple of solutions you can work with.
If you search for Yoast and ACF on the plugin directory you can find the one you like best: https://wordpress.org/plugins/search.php?q=yoast+ACF
We have a plugin of our own: https://wordpress.org/plugins/yoast-seo-acf-analysis/
Which is open source, so if you find any problems or think of enhancements you can create an issue at the github project: https://github.com/Yoast/yoast-acf-analysis
Hope this helps you.
Jip from Yoast