Text editor wordpress website - wordpress

I have a question about a text editor.
If you want to add a post on your wordpress website. you can do that with the text editor on your wordpress-admin-page.
I've set up my own system to add posts (newsarticles) to a website (without wordpress).
At this moment i have to add them manualy in a database (phpmyadmin) but i was wondering if it was possible to create an editor (with some code). Setting things in italic/bold would be a lot easier then, for me and for the people who doesn't understand this.
I hope my question was clear.

Try with CKEditor. Download it here (Not for WP) and use it as a text editor outside Wordpress.

Related

Add WordPress visual editor in HTML textarea

I created an HTML text area in frontend. Now, how to add WordPress visual editor in the HTML text area?
Wordpress uses TinyMCE as it's rich text editor. There are a variety of plugins you can use to make it available on the front end, and there is information about working with TinyMCE in the Wordpress Codex.
A word of warning about allowing your users to create HTML from the front end that you might serve back on your site. It is a really open vector for scripting attacks, especially if the form is more-or-less open to the public. You might want to look at a Markdown editor instead, if it still meets with your specifications.

Does wordpress offer the ability to edit theme structure via the online editor?

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.

Why won't the WordPress editor make changes to html page with custom template?

I had created a custom page-Contact.php file to use as the template for the contact page of my website.
When adding short code (or any text at all) to the WordPress editor in my WordPress admin section, no updates were being made to the html after inspection of the source.
I solved my own problem, but it was a little tough for me as a beginner to find the answer so I'll post it again in hopes of helping someone else.
Add the loop!
All pages need a loop in order to display any info/changes from the visual editor.

WordPress, code in html editor or code in index.php?

I'm volunteering to create a website and i've come across this dilemma with WordPress. Say the client deletes or edits a Page/Post in the visual editor, that could remove html code in the html editor.
The solution i've thought is to have text only in a Post, the html will be in index.php and the Page/Post will be fetched from index.php.
But for a particular page i have 30 pieces of text each inside an element with different colors. Would it be wise to fetch each individual Post from index.php or is there another way to prevent html code from being removed?
I'd like to point out, the client doesn't know anything about HTML, so i'd like to make it as easy as possible for them, simple editing of text and images. I don't want them to edit something in the future and the code is gone.
How do you WordPress developers approach this situation?
If you want this level of control, it is often helpful to use post 'custom fields'. This is pretty simple, it is a selectable field in the top dropdown when you are in the page/post editor.
http://codex.wordpress.org/Custom_Fields
You can then access the custom fields in your php files using the get_post_custom() function.
Here's more detail: http://codex.wordpress.org/Function_Reference/get_post_custom

Wordpress tiny mce editor does not show exact in the front end

I recently started developing websites on wordpress. I have this problem with tinymce editor. When i write post and format content it looks how I want in it. But when I publish post and check that it looks really crappy.Then I called the stylesheet of tinymce editor on everypage of website. I must say there is change but it still looks bad.
How can I get content in exact formatted way as I see in the tinyMCE?
Thanks,
kiran
On the frontend the styles from your theme will be taking precedence over the layout and sizing of content.
In the administration section it will be using a default TinyMCE editor css file. This allows for Wordpress to easily support a variety of themes without making many changes.
So that leaves you with the potential inconsistency, which you have identified here.
Either you work with the WYSIWYG editor giving you an approximation or you could add the relevant styles from your theme to the editors CSS. This can be done using add_editor_style() DOCs.
Use this WordPress plugin to solve your problem.
Specific CSS/JS for Posts and Pages

Resources