The tag has no usage guidance.

learn more… | top users | synonyms

10
votes
1answer
1k views

How to use “Add link” pop up for a WordPress widget

In the WYSIWYG editor of WordPress you get pop up if you want to add a link for a text. Is there a possibility to access this functionality? Because I want to use this pop up for a WordPress widget ...
6
votes
1answer
1k views

Hide “Add media”, html editor from tinymce

I have a custom post type which supports editor. (WordPress ver. 3.5) I want to customize the editor for it. Make it readonly Hide "Add Media" button Hide HTML editor Remove status bar showing word ...
5
votes
1answer
2k views

Wordpress Visual Editor Stripping HTML Changes

When I use the WordPress HTML editor to add icomoon icons like this: <span class="icon-shield"></span> and then switch to the visual editor and then back to the HTML editor, the icons ...
4
votes
6answers
9k views

Add quicktag buttons to the HTML editor

I am trying to figure out how to modify the HTML editor in wordpress; on the image below you can see a screenshot of the editor and the buttons on the top. Is it possible to add new buttons? I would ...
4
votes
1answer
166 views

Can I force WordPress to use <i> instead of <em>?

For example, Did you know that <em>hot</em> was used to mean "<a title="What is the origin of “hot” as “good-looking” or “attractive”?" ...
4
votes
2answers
620 views

Enable / Add Custom Keyboard Shortcuts To Work With WordPress' HTML Editor

I use Markdown in my posts, and the plugin I use for that purpose requires the Visual editor be disabled. The HTML editor is pretty much just a text box. To make writing easier, I would like to ...
3
votes
1answer
980 views

prevent wordpress from rendering line breaks as br tags

I am tired of WordPress's horrible HTML editor and have decided to write all my html in Notepad++ and then just copy it over. However, simple line breaks "\n" that would be normally ignored in html ...
3
votes
2answers
2k views

How to to stop html editor from addig <p> tags to shortcodes, images, etc

I know this this is covered as individual topics but What I am looking for is a single function that stops <p> tags from being wrapped around via the Wordpress editor to shortcodes and images ...
3
votes
2answers
990 views

WP Editor strips input placeholder attribute

Why WP Editor also strips the "placeholder" attribute of the input text element ? Ofcourse, i am using the HTML mode. Here is the input: <input type="text" value="" name="s" style="width: 550px;" ...
2
votes
2answers
525 views

How To Hide The Visual And Html Editor Completely?

I have some clients that are going to be using wordpress for their sites. I created custom fields for them to input data in so they don't have to use the editor. How do I hide the page editor ...
2
votes
2answers
1k views

Removing buttons from the html editor

I've been searching the codex, and I'm probably overlooking something somewhere, but could someone tell if it would be possible to remove a button/quicktag from the WordPress html editor?
2
votes
4answers
1k views

Preserve white-space in Page

I frequently post pages with code examples. However, Wordpress strips out whitespace, thus ruining the indentation and formatting of my code. So this: <pre> selector { property: ...
2
votes
2answers
212 views

Contents of HTML editor mangled after multiple UPDATES

In a perfect world, WordPress would take what I enter into the HTML editor and write it verbatim into the post/page document received by the browser. Disabling wpautop has already helped me slightly ...
2
votes
1answer
342 views

why do HTML Comments in the WYSIWYG break the page display?

This question is about HTML code comments <!-- like so --> rather than about post/page comments. I specify the WYSIWYG, but this problem arose in the HTML view, not the Visual. I've been ...
2
votes
2answers
3k views

how to make stylesheet appear in theme editor?

I have a stylesheet in my theme in the css subdir of the theme dir (css/style.css). The question is how to make this .css file appear in the theme editor of the WordPress admin. (I know using the web ...
2
votes
1answer
145 views

ID's being stripped out of editor for Admin user in Multi-Site

I have a Multi-Site install running on the current version of WordPress (3.3.1). The problem I'm having is the ID's are being stripped out of my tags in the editor. When I am logged in as a "Super ...
1
vote
3answers
2k views

Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor

Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
1
vote
2answers
557 views

How to display php source code inside a post using visual editor?

NOTE I don't want the php code to be executed, only displayed. I want to display this php code <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?> inside a post. I cannot make ...
1
vote
2answers
512 views

functional quicktag

I want to add quicktags that do more than just add markup. For instance, I would like to add a quicktag to run a function do apply a js regex on the page content. How can I add a quicktag that ...
1
vote
1answer
185 views

Prevent the Editor From Moving My &nbsp;

I know variations on this have been asked all over the WordPress world, but I can't seem to find what I'm looking for. I have HTML that looks like this: <a ...
1
vote
1answer
125 views

HTML editor accessing quicktag buttons

I'm stuck in searching a way to access the quicktag buttons on the html editor with jQuery. I tryed to access the buttons with .each() and .children() but both won't work. jQuery( document ).ready( ...
1
vote
0answers
15 views

In context click and edit: is it feasible?

I would like the following feature, and I'm willing to put my hands on it, but I'd like that developers more in touch with WP codebase give me some feedback. I want to have some sort of in-context ...
1
vote
3answers
327 views

How can I control the HTML output of my post?

As you already know, WordPress manipulates posts, even if you write everything in Text mode. (replacing line breaks with \r\n 's , converting single quotes into double quotes etc.) I know this is ...
1
vote
0answers
162 views

pop-up options for custom quicktags

I always use HTML editor when writing an entry in my wordpress blog, I'm not sure why I can't bring myself to like the TinyMCE editor. After a while, I started to think about creating my own quicktags ...
1
vote
0answers
679 views

Strange problems when I try to insert HTML\XML code snippet in my posts

I am experiencing some problems while trying to insert XML code snippet into my WordPress articles. I have just read this tutorial: http://codex.wordpress.org/Writing_Code_in_Your_Posts I am using ...
1
vote
0answers
227 views

How can I remove <br /> line breaks from manually formatted HTML?

I see a lot of posts here and elsewhere having trouble adding line breaks for some reason, but I'm trying to remove them. I'm new to WP, and I see that when editing in "HTML" mode the text is rendered ...
1
vote
0answers
301 views

Wordpress Page Edit gives Error 404 [closed]

I'm having the stupidest problem, ever. I can manage and edit pages just fine, but after some time, I can no longer edit or preview a page and I receive an "Error 404 - Page Not Found". This ...
1
vote
2answers
307 views

How can I prevent Wordpress to wrap <br> into a <p> paragragraph

When I create a new page and put <br class="clear"> into the HTML view it gets rendered as <p> <br class="clear"> </p> This causes problems with the theme ...
0
votes
3answers
359 views

Wordpress tinymce prints empty P tag and break html format

I'm raising this problem because I don't find a latest answer and the problem still exist to me. I'm running wordpress 4.2.2 with x theme when I'm editing the content via WP default editor (tinymce). ...
0
votes
2answers
274 views

How can I make the page editor trust me?

I want two images to appear side-by-side. However, WordPress inserts a line-break between the elements, even if I use the HTML editor rather than the Visual editor. How can I make the editor trust ...
0
votes
1answer
302 views

Create keyboard shortcuts for HTML mode

I always use the HTML editor for writing all my post. So I always have manually typed all the tags such as "<strong></strong>" for bold... "<i></i>" for italics etc. I don't ...
0
votes
2answers
76 views

Recommended tools for Theme Development with SASS [closed]

My question is - what are other people's processes in most efficiently developing WordPress themes that utilize SASS and what tools are you using? I also develop from multiple locations/machines (both ...
0
votes
1answer
282 views

Wordpress <!--more--> adding a <br> to my anchor for Read More

When creating a post within my wordpress site (using the editor) I want to add the short code, or even use the link at the top of the editor to do so. The end result is (it does create the excerpt ...
0
votes
1answer
68 views

Why does WordPress change a file's permissions?

If I set the permissions to the CSS file in my theme to 444 and then attempt to edit it in the Appearance Editor, WordPress is not prevented from editing the file and in fact change the permissions to ...
0
votes
1answer
148 views

How can I create an alternate full-HTML editor for posts?

I have created a custom post type; the content of this custom post type should be a full html page - not just a snippet of html. The standard editor appears to interfere with the html and it does not ...
0
votes
1answer
45 views

Can't give tags rels

In my Wordpress post I click on edit post and skip over to the html editor tab and click on it. I have a pre on that page and when i give it a rel and publish its all fine but when I skip back over to ...
0
votes
2answers
80 views

HTML tables in content areas

Is there a plugin that would allow me to create and edit tables within the content block in posts and pages? I suppose a bit like the 'insert table' command in MS Word.
0
votes
1answer
42 views

Visual composer causing conflict with TinyMCE [closed]

My Tinymce is not showing up by default. All out of the sudden, without any new plugin installation or what so ever, VC plugin started to force my text editor (when creating a new entry) to switch ...
0
votes
1answer
177 views

How-to stop wordpress from saving utf8 non-breaking space characters

Anyone have a tip on how to prevent Wordpress from saving utf8 space characters (= hex C2 A0) in DB by replacing with space \x20 ? Is there a hook that can be used to do a replace before saving to ...
0
votes
1answer
129 views

add_meta_box Callback not being called

I created my first plugin last week that makes a custom post type. As this worked, I copy pasted the code I already had and modified it to be a different post type. For whatever reason however, the ...
0
votes
1answer
43 views

Edit box scrolls back to the top after updating post

I've been quite annoyed by this. On post edit page, once I edited something in the middle of the page and hit Update, the whole page reloads and the edit box starts from the top again and I have to ...
0
votes
1answer
229 views

Commenting out in HTML editor breaks template

There is a certain section of HTML that I need to comment out within the HTML editor in Wordpress. But when I do so, it breaks the HTML. After looking at the source code, I noticed that it converts ...
0
votes
1answer
18 views

How to determine if a post was last edited in the Visual Editor

Is there any way to determine whether a post was last edited using the Visual or HTML editor? Perhaps by hooking into an action?
0
votes
1answer
3k views

qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]

Anybody knows how to solve the issues in qTranslate 2.5.28 with WordPress 3.3.1? http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3045 ...
0
votes
1answer
88 views

Using WP just to edit pages of an existing site

I was asked to let the user to edit an existing site articles using Worpress. But because the site has a lot of php code (not used for the articles) that would take quite a lot to convert in WP ...
0
votes
1answer
54 views

data-accordion removed in Visual Editor

Using Foundation 5's accordion, and the data-accordion html data attribute in: <dl class="accordion" data-accordion> gets removed when a user only edits a page with the Visual Editor. Does ...
0
votes
0answers
17 views

Is automatically passing a class from an element to another element a bug in the text editor, or a default behaviour?

When I press "enter" in the visual tab, I get the usual empty lines... until I change to the html tab and notice it created a repetition or clone of the element that was in the line where I gave ...
0
votes
0answers
30 views

How to write a label element in the text editor?

I want to add a label to an input field in my Home page code, but when I do this via the Text Editor and save the page, there are no changes on it. I tried to make some other changes like adding br ...
0
votes
0answers
190 views

unwanted <br> and <p> tags in text editor

I'm very surprised that an answer to this isn't easy to find. I've been searching for a solution to this problem for some time now. Google has a few sketchy answers, but they're old. My question is ...
0
votes
0answers
110 views

Set tinyMCE content filter to execute before other filters

I am looking for a JavaScript way of filtering the content when switching between the visual editor and the text editor. The filter is used to allow users to write code on both the visual and the html ...