Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
22 views

Locating the HTML piece of code in wordpress

I am new to wordpress and I am currently working on modifying a wordpress built website. I am trying to find the exact HTML location of the web page using inspect options in chrome and then trying to ...
4
votes
3answers
109 views

Stop WordPress From Removing HTML Comments In Content

Whenever I switch from the visual editor to the text (HTML) editor and put an HTML comment in the code, e.g. <!-- this is a comment-->, WordPress removes it, either after saving the change or ...
1
vote
1answer
89 views

How to add JavaScript code on WordPress properly?

In the code editor, pasting: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> var words = []; words.push('vocabulary'); ...
1
vote
0answers
34 views

Inline Style attribute getting stripped off

I am trying to style a particular section of a blog post using the WordPress editor in HTML mode. <div style="background: red;"> Special section </div> The works fine. But when I add ...
0
votes
1answer
19 views

Problem with some keys when editing HTML in wordpress “text” editor

My wordpress 4.9 editor for posts has two editor views Visual Text I am mostly using the text view and often adding shortcuts. Sometimes I directly add HTML5 code, e.g. for tables. However, these ...
1
vote
1answer
150 views

Placeholder in HTML editor text area?

I am trying to make a placeholder appear on the default html editor on a specific post type. The code looks like this: add_filter('the_editor','add_placeholder_event'); function add_placeholder_event(...
0
votes
2answers
25 views

Adding Html in text editor automagically adds undesirable paragraphs when publishing

When I write pages, I want to code my own HTML to accomplish the design that I get. For that I use "Text" editor view instead of "Visual" editor. I do not switch between them and when publishing the ...
0
votes
2answers
28 views

How to create different gallery-types and let the editor choose between them?

What I want to achieve The editor should be able to add galleries via the native wordpress way and choose between 3 different gallery types. These 3 types should all have their custom code-output, ...
0
votes
1answer
4k views

How to replace the content of tinyMCE editor in both text and visual mode using jQuery?

I have added a button beside the Add Media button in WordPress' post editor. Its called Insert Content button. When this button is pressed, it should send a content, either plain text or HTML, into ...
-2
votes
1answer
442 views

Add Custom CSS Class in Child Theme [closed]

On my blog, I have different heading styles which I had defined in each post using HTML of the Wordpress Editor. Since one heading style appears frequently I would like to add a custom CSS class to my ...
-2
votes
1answer
544 views

Remove TEXT EDITOR form page [duplicate]

I'm looking for a way to remove text editor from page because i'm using Beaver Builder plugin (for building my pages). like you see in the picture bellow, i have 2 tabs. I want to remove text editor ...
-1
votes
1answer
29 views

Which subset of html does WordPress support?

I am in the middle of writing plugin for WordPress which would cross-post articles from wordpress to different places. I need to know what html-code can be produced by wordpress editor... or in ...
1
vote
0answers
27 views

How to process html editor whole content of a single post

Given that I'm new about WordPress, I was not able to find any plugin implementing search & replace functionality for the html editor of a single post. Is there any technical difficulty in ...
0
votes
0answers
132 views

Why is every single HTML tag being stripped out of liveblog entries?

I have variously been using Livepress and the Automattic/Wordpress VIP Liveblog plugin as a live-blogging solution. However, I have run into an issue that does not seem specific to either plugin but ...
3
votes
2answers
992 views

strip only specific tags (like <p>), but keep other tags (like <br/>)

I know it's easy to disable Wordpress from adding both p and br tags with: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); but I want Wordpress to keep adding &...
1
vote
1answer
1k views

Disable TinyMCE Table formatting width/height

Hi there I want to disable automatic formatting of table/td/tr widths and heights in WordPress TinyMCE. I create the table, literally type the data in (not copying it from word or anything like that) ...
0
votes
1answer
112 views

Callback function quicktags that uses variable in start tag

I am trying to make a callback function that returns on click of a quick tag wordpress button dinamical generated variables inside the tags. Something like QTags.addButton( 'eg_wrap', 'WRAP ARROWND',...
0
votes
2answers
73 views

What is the correct syntax to append a URL using a shortcode for an iframe?

I need to iframe a series of content on our site. I need to pass on the the user information via a URL - vendor request. I have tons of shortcodes that display the username. It works fine. But ...
3
votes
1answer
35 views

Where can I find the code how wordpress parses a post?

When you write a post in text section instead of visual WordPress will work with HTML. But when you save the post and preview it, it will transform your HTML-like text into real HTML with proper ...
0
votes
0answers
286 views

My Wordpress editor deletes all characters after emoji - how can I fix this?

Here's my issue: I have an Instagram post that I want to embed. I go to Instagram, I get the embed code, which includes emoji, I paste it into the WP editor on a new post (note that I am on the "text" ...
1
vote
3answers
2k views

Prevent Wordpress from adding linebreaks to javascript embedded in a page

On a page in Wordpress, If I enter the following code: var r='<li><a href="#"><img src="' + slide.src + '" width="50" height="50" /></a></li>'; it is rendered in the ...
-1
votes
1answer
326 views

wordpress not saving form code in code editor

I'm sure this question has been asked a thousand times, but when I search, or post a question with the above title, no answer is presented. A few weeks ago, I was able to save Paypal form code into ...
1
vote
1answer
963 views

Prevent WordPress from messing my HTML

Is there a way to prevent WP from modifying my perfectly fine HTML? When writing content of a page, I'm writing a list as <ol> <li>Paragraph 1 : text Some more text</li> <...
0
votes
1answer
996 views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
1
vote
1answer
150 views

Selectively remove empty line after line change

In WP post editor, how can I change lines without adding an empty line? I try to post this One line Second line third line But it always shows like this One line Second line Third line PS: I ...
0
votes
1answer
933 views

Why exactly does Wordpress use p tags, not divs?

Something I find somewhat odd is that by default, Wordpress always seems to make paragraphs, not divs when you press enter. At first this may seem like the common way to make paragraphs, but it's ...
2
votes
1answer
89 views

Exclude file from theme editor

Is possible to exclude some files from being viewed and modified in the theme editor?
0
votes
1answer
2k 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
3answers
2k 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). ...
1
vote
2answers
164 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
712 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 ...
1
vote
0answers
1k 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 ...
1
vote
1answer
980 views

Custom settings page TinyMce: no formatting when echoing value of editor

I have created a custom settings page with a couple of wp_editor() calls on it. When I enter some text in the editor, and format it (e.g. make it bold), and then save it, the value is saved in the ...
1
vote
0answers
30 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 ...
0
votes
1answer
754 views

How to show the contants in front end same as visual editor with space / linebreak?

My visual editor looks like this: My text editor looks like this: But my front end looks like this: I know that the wordpress automatically removes linebreaks. So I installed tineMCE advace editor ...
-3
votes
1answer
631 views

Can you not edit the HTML and PHP of your WordPress without paying?

Sorry for the noob question. I'm new to WP. I'm not seeing where I can edit the HTML and PHP of my blog. I see a bunch of GUI options to change colors, etc. but nothing to change my blog's source ...
0
votes
1answer
1k 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 ...
2
votes
2answers
934 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
35 views

Custom code in all text between <>?

I have a html tutorial based (like w3schools.com) Wordpress site which have around 200+ pages ans posts. Our writer wrote all article in simple text format, but now we are making our post interesting ...
1
vote
0answers
2k views

How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5?

Starting with version 5 the HTML standard allows <a> tags wrap block-level elements. On a specific page I need to wrap a heading and an image with an <a> tag: Some intro text. <div>...
8
votes
1answer
4k 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 ...
0
votes
1answer
79 views

How can you change the non-visual editor's background color?

I am using Wordpress with theme 2011 and the "Jetpack Markdown" extension. When you are using the "Jetpack Markdown" extension, you cannot use the visual editor, so I am using the non-visual pure ...
0
votes
1answer
66 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
128 views

How to disable style filtering in post?

I need to put HTML code directly in post. It works, except for some css attributes : background-image position Every time a "editor" or "admin" user try to type those attributes in a style ...
0
votes
1answer
832 views

Disable html in custom post types

My webstie have custom post type created, and now I want to disable usage of any html tag in content editor, so only plain text is saved in database (and to remove content editor and html editor if ...
0
votes
1answer
27 views

I have a question in Basic HTML [closed]

What does it mean to edit a website directly? My professor tells us not to use an editor. I'm not sure how to do so either.
2
votes
3answers
804 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
2answers
1k 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
1answer
306 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 name="title-slug">&nbsp;</a>...
12
votes
1answer
2k 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 ...