Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend do not work #5

Open
leokolt opened this issue Mar 7, 2017 · 4 comments
Open

frontend do not work #5

leokolt opened this issue Mar 7, 2017 · 4 comments

Comments

@leokolt
Copy link

leokolt commented Mar 7, 2017

Hello! Why all my styles work only in the backend of the site and in the frontend do not work? I'm using the file editor-formats.json

@aprokopenko
Copy link
Collaborator

The plugin doesn't add any styles on frontend. Editor styles are usually very simple and they should not be placed on frontend.

Even standard WordPress theme has separate CSS for editor.

The main idea of the plugin - to add the ability to add some CSS classes or wrap elements with pre-defined div blocks without editing the size code in "Text" mode.

This gives you the ability to make more advanced styling comparing to standard WordPress editor.

Like for example when you use bootstrap in your theme -it has a lot of classes for formatting, however you can't set them from the editor.

@bw-everstring
Copy link

If this doesn't place styles on the front end, then what is the purpose? Why would I create a style/format that can only be used in the editor?

There is a huge opportunity for an editor that would allow users to manage these add on styles without having to get into FTP'ing files, particularly if it wrote styles to editor-style.css

@aprokopenko
Copy link
Collaborator

The plugins is suppose to be used by developers, not by final clients to add something to their editor.
This plugin is used when you have custom design and need to implement it into the theme. Within this design content parts may have special styled elements (like buttons, tables, headers etc). To allow client choose this without remembering class names or IDs of the dom elements - we created the plugin to set this preferences inside the editor Formats dropdown.

But plugin suppose that these styles are already exists inside the theme css.

I can open discuss somewhere and maybe add new option to print styles to the frontend too. But complex styling can break the WordPress editor, so it's not recommended to use editor styles as real styles on the frontend (because they require media queries for responsive html, ::before, ::after statements etc)

@bw-everstring
Copy link

bw-everstring commented Jul 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants