Covers all flavors of HTML: HTML5, XHTML and old-school HTML 4.

learn more… | top users | synonyms

0
votes
1answer
12 views

Different post styles depending on category

I am using Zephyr theme The link to the blog page. I want to style each post differently based on the post category ex: social media, announcements ect. I would like to style them using a cards ...
0
votes
1answer
465 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
0
votes
0answers
11 views

Why are the author and the date not displayed next to the avatar in comment section?

I got the following code: jsfiddle.net/xg0waxL7 In this Fiddle it looks good but the problem is that WordPress displays just the bottom comment like I want it: prnt.sc/b7yaq6
-1
votes
1answer
15 views

How can I get rid of the distance when I'm using list-style-type: none? [on hold]

I am using the following code (output html) to get my comments displayed. But there is a space because of the list-style-type: none; I used. How can I get rid of this? This is the fiddle
0
votes
0answers
11 views

Highlighting HTML code entered in the text editor

I have a need to have both "rendered" html in a post and "raw" or highlighted html in a Wordpress 4.5.2 post or page. I have solved the former by simply editing in the text editor, placing my code in ...
1
vote
1answer
26 views

How create a Shortcode with hover and complex options

I am wondering how do you do when you have to create a shortcode with multiple hover or complex options ( gradient, boxshadow etc, thing that can't be inline ). How do you generate the css. I don't ...
-4
votes
1answer
18 views

Wordpress adding style display none to body tag [on hold]

I have been searching for a solution to this issue, but somehow, I am unable to come up with any results with the same issue, either here or other sites. I have turned my pure html and .less site ...
1
vote
1answer
558 views

Multiple options not staying selected after saving

Problems: The save works, but is only storing one of the options in the database after save. Options not showing as selected after save. The select fields: <select ...
-2
votes
1answer
29 views

Place images below each other

On this site : http://www.helensheardfloraldesigns.co.uk/, the right hand side of the header are two social logos, how would I style these so they are below each other, not next to each other. The ...
-1
votes
3answers
34 views

Get post format and use it as a CSS class in different spans

I use a <span> inside the loop and I would like to get each post format the post is containing as a class in separate spans. Example: If the post format is video and private: I would like to ...
0
votes
0answers
45 views

Load a page into a div with Ajax

I'm really a noob when it comes to Wordpress, right now I'm working on a theme that basically is all static, if you want to edit something you'll have to edit the .php file than rather doing it on the ...
1
vote
2answers
31 views

Add custom HTML to posts page

I want to add a header image via some custom HTML to the posts page but can't edit it with the pages menu in Wordpress. Is there a way to add the HTML in the specific PHP-File and which PHP do I have ...
1
vote
0answers
14 views

Can I strip HTML tags in the “Compare Revisions” screen?

I am building a CMS for content editors that have zero tech savvy. They currently use a system called NewsCred that allows them to compare revisions much like how WordPress does when you visit ...
0
votes
0answers
16 views

input type text with metakey

How do you create a custom field box with metakey associated on it? I have this metakey "word_srch" then I wanted to create an input type text that and whatever type in the input put, it will ...
0
votes
0answers
11 views

How do I change the clickable function of this button? [closed]

On my wordpress site I want I have a button that on first click prompts the opening of signup modal, and if clicked again it signs the user out. Does anyone know how I can adapt this code for the ...
1
vote
1answer
115 views

WordPress Shortcode and Dynamic CSS

I have a question I would like to ask to the WordPress developers, Usually when creating a shortcode that need to generate custom css how do you proceed? For example a simple button shortcode with ...
1
vote
4answers
3k views

How to wrap every image in a post with a div?

When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don't have to do that in HTML editor. I don't want to use js to accomplish this and by the ...
-1
votes
0answers
18 views

Wordpress pagination why is this not working? [duplicate]

I got the following code: <main id="main"> <?php // the query $args = array('posts_per_page' => 2 ); $the_query = new WP_Query( $args ); ...
1
vote
1answer
23 views

How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]

I have a section on my front page that displays the top 4 most popular products from my Woocommerce shop. I is located within a div as such: <div id="trending"> <p ...
0
votes
1answer
31 views

How to remove coupon dropdown feature

I want to remove the coupon drop down feature and just have the input field and 'add coupon' button on the checkout page. Does anyone know how I can get rid of the dropdown feature? Thank you in ...
1
vote
1answer
34 views

'the_content' filter removing html tags from post content

I have a post content(html) like this: <div id="home_tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin ...
1
vote
1answer
67 views

Upload Image in a Wordpress page using PHP

Hello awesome people of SE! :) Okay, so this is a little far-fetched but I'm trying to get a HTML form with a PHP upload script to work inside a Wordpress page. I can't use a plugin. It's supposed to ...
1
vote
1answer
40 views

How to stop images from being wrapped in <p> tags?

I'm trying to stop Wordpress from automatically wrapping <img>s with <p> tags. I've tried this often-reccomended snippet from around the web in my functions.php: function ...
3
votes
2answers
585 views

Stray closing paragraph tag when using shortcodes

I'm using a basic shortcode to wrap some text in an expandable div. What appears to be happening is that the wpautop is inserting a stray closing paragraph tag at the beginning and a stray opening ...
1
vote
1answer
52 views

How do I add some HTML before & after the content for all posts?

I would like to add following html before & after a post content: <ol style = "padding:0;margin:0"> // post content </ol> How can I do this for all existing posts ...
1
vote
0answers
177 views

Add .htm extention to a custom taxonomy

I need to add '.htm' to all my urls on a new site - client requires that, as I am converting a old static site into WP. (I use Remove Taxonomy Base Slug to hide the slug of my custom taxonomy "topic" ...
1
vote
3answers
463 views

Import HTML code that loads css and javascript into specific page

How can I add the following HTML code into one of my web pages? It's a web form that relies on css and a few java script. Below is the raw HTML code. <head> <link href="css/style.css" ...
0
votes
1answer
908 views

Allow Access To Subfolder Of HTML For Logged In Visitors

I have a WordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in WordPress users to be able to have access to ...
-1
votes
0answers
34 views

How to display a local folder directory in an iframe for intranet site?

I am trying to get a local file directory (M:/) on a company server to display on an intranet site we are trying to put together. I am not a programmer / developer; however I have built a few dozen ...
0
votes
1answer
25 views

TwentyFourteen Theme : Changing grid layout

I have been plugging away making my new site and it is going great with only one issue so far. How would I go about changing the featured posts grid so that instead of displaying 3 featured posts per ...
0
votes
0answers
23 views

How can i implement “select from existing tags” for front end posting?

Hy,on the bottom of Tags: I want to add something to be able to select from existing tags. Something like on backend "Select from the most used tags" Here it's html and php code : case ...
1
vote
0answers
17 views

Adding target and _blank as it's value to the allowedtags

I know that WordPress uses KSES to parse HTML and strip invalid XHTML so I took control of $allowedtags in my themes functions.php file inside a function then added 'target' keyed to an array which ...
0
votes
2answers
70 views

File Uploader - Upload without adding to Media Library

I have an admin form for a plugin I am making. However, there are a couple of fields I need to add where the admin need to upload a document or image. When these files are uploaded, I do not want them ...
0
votes
2answers
29 views

How can I use custom menus with a Bootstrap WordPress theme?

I have this 'primary' menu with a few items in the CMS, which I can list nicely with this PHP code: $args = array( 'theme_location' => 'primary' ); wp_nav_menu( $args ); The PHP outputs ...
0
votes
1answer
29 views

Add HTML between feed items

I am using a Wordpress plugin called RSS Retriever to display a RSS feed on this page Manchester United News What i am looking to do is display an advert (HTML) between every other feed title. Is ...
-1
votes
1answer
48 views

How to display html code normally?

I want to display my html code as it write in edited format. Here is my edited html code. It display as following after publishing it. How to make it displayed as the following?
0
votes
0answers
10 views

Displaying html table on post content

I generated some content via golang. Than I added to wordpress wp_posts table. The generated content contains html table element. But I can not display properly on frontend area. there is problem at ...
1
vote
1answer
603 views

Edit raw HTML of the landing page

I just created and set up a landing page for my blog. I use Weaver theme. I checked every checkbox to remove all the stuff I don't want ( Hide Page Title, Hide Site Title/Description, Hide ...
-2
votes
1answer
24 views

How make wp_nav() with my css?

I'm make small theme for company. We have html code made by fronted developer. How will be code menu from html to wordpress by php. <nav class="top-nav"> <a href="">О ...
0
votes
0answers
16 views

integrating html section into page with javascript autoloader

I can't seem to load the html section in the correct styling even though the css is correct and the js is loaded which is confirmed by javascript autoloader plugin. the html is here.... <!-- ...
0
votes
0answers
25 views

How can I turn subheading into short description?

Using Magazine lite theme and have commented out the display of the date and comments under each post. However I was wondering if there was a way I can replace those with short descriptions under each ...
4
votes
1answer
671 views

Search/Replace for editor in HTML-mode

Is there a way to do a Search and Replace from the editor in HTML-mode? Plugins I found work in the visual editor, we are working only in HTML-mode, therefore -not- appropriate for what we do. I would ...
0
votes
0answers
27 views

Add tags to kses_post array parameter

I think I butchered the title but (code below) I am trying to wrap some tags around whatever is written in the $message array, is there a way to do that? Also, is there an easy way to change the ...
0
votes
1answer
79 views

Remove &nbsp; in post content

I have been trying to figure out since yesterday on how I can remove the code &nbsp; on my post. In the WYSIWYG editor it shows spaces, but once after I publish my post, it shows words sticking ...
1
vote
4answers
2k views

Stop wordpress from removing HTML attributes

I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, ...
0
votes
0answers
35 views

How to unwrap/separate Html tags in pages?

I have around 300 pages with some of them having wrong HTML formatting that I have to fix. I want to: Separate the H1 tag from the inner tags. Moving the TITLE (found in span) to H1. Get rid of the ...
0
votes
0answers
28 views

Is there a way to export text from Word to Wordpress with HTML tags but without attributes?

I developed a Wordpress blog which has it’s own CSS styles. For each blog post I import text from Word 2010 to the blog editor, but this imports Word styles and forces me to spend a lot of time on ...
0
votes
1answer
52 views

Highlight parent if item from submenu is active

I have a menu, but when I go to the submenu page, the parent of this submenu is not highlighted. How to do this? When it doesn't have a submenu, it works fine: My menu structure is: <nav ...
0
votes
0answers
23 views

Plain text (HTML) in wordpress admin

I am developing my custom theme and I noticed that some of the links result in showing me plain text HTML instead of normal webpage. I tracked down the issue and found out that this happens when I ...
0
votes
1answer
22 views

Can't make product images clickable

I've tried many things and many solutions but i can't make product images clickable. Here's the code: if ( has_post_thumbnail() ) { $images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' ...