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

learn more… | top users | synonyms

0
votes
0answers
6 views

Styling fetched data in word press posts and pages

I am new with wordpress and php. I have a database in phpmyadmin and I have used Exec-PHP plugin to fetch and I am able to successfully display data from my data base on my word press theme posts and ...
-2
votes
0answers
14 views

How can I create a drop list (dropdown submenu)? [on hold]

I've converted my HTML theme to WordPress, but I need know what code I can use in header.php and functions.php to create a drop list using CSS, without jQuery. I use this code in header.php: <div ...
-3
votes
1answer
17 views

Keeping Div in the same position relative to another Div [on hold]

I have a wordpress site which I am developing a couple images and figcaptions for. I am currently having trouble keeping my figcaption and transparency effect in the same position relative to the ...
0
votes
1answer
19 views

How to add a “Read more” button to my blog?

I have an HTML template which I convert to a Wordpress theme, but i can't add a "Read more" button to the home page. I use the following code in functions.php: function the_content_limit($max_char, $...
-1
votes
0answers
23 views

How to use Stellar.Js jquery plugin in wordpress

I have been searching for a proper jQuery plugin that does parallax effect on almost all devices and it seems like stellar.js is considered one of the best. I have been having trouble implementing it ...
1
vote
1answer
601 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 id="...
0
votes
2answers
32 views

WooCommerce - Adding custom HTML to specific product pages

I'm trying to add some custom HTML to specific WooCommerce products for my client. I successfully learned to add this custom HTML to all product pages at once (more specifically to their descriptions, ...
2
votes
3answers
432 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 ...
0
votes
1answer
40 views

How can I add the Post ID to Class Name in Jquery?

In the custom Wordpress theme archive page, I will have Sharing icons for all the posts. Below is the HTML for showing Sharing icon: <span id="post-share-<?php the_ID(); ?>" class="post-...
5
votes
2answers
2k views

When switching from html to visual editor the <iframe> tag gets corrupted

I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. &...
0
votes
3answers
528 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
417 views

html mail sended with wp_mail shows plain

I have a invoice.html that i want to send i use the following function to replace some things in the html foreach($variables as $key => $value){ $template = str_replace('{{ '.$key.' }}', $...
0
votes
1answer
18 views

Meta Tag “description”

I have troubles using meta tag within Wordpress post-making environment. I wish to give it for first paragraph of each article and in the searching it will show only description and image thumbnail. ...
3
votes
2answers
603 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 ...
3
votes
2answers
33 views

Mail will not send in HTML

Okay, I've got the following issue. I'm trying to send a mail in HTML format. I made a class that returns an HTML string, and that works great. When I pass that html-mail as $message in my function, ...
-3
votes
0answers
28 views

How can I edit a woocommerce / visual composer shortcode?

There's this element in Visual Composer: Product Category, which retrieves all products in a specific category. I would like to know where can I edit it, so I can modify its HTML output.
0
votes
0answers
38 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 ...
0
votes
1answer
937 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 ...
-3
votes
1answer
65 views

Advanced Custom Fields Show PHP in Text Areas

I recently installed and configured my ACF fields. However, I found out that when I include PHP (ex. <?php the_field('field_name');?>) in a custom field on the admin panel, the PHP only shows up ...
3
votes
1answer
64 views

Can't get staging site to display same way as live site. Completely stumped

Background I have a situation that's been driving me up the wall. After many hours (more than I'd like to admit), I've been unable to solve it. So I am thinking there must be a better way to go about ...
-1
votes
1answer
18 views

WordPress Multisite with HTML template as Root

Sorry about the title, I couldn't think of a good one. Would it be possible to have a WordPress Multisite setup with a HTML landing page as the frontend and just have the backend of WordPress ...
0
votes
0answers
26 views

How to insert image using WP REST API

I'm using WP REST API to post articles into wordpress. How to insert image using WP REST API in the post? I tried using<img src="url_to_img.png" > directly in the post, now the html code ...
0
votes
1answer
42 views

Where to find the html for Wordpress site? [closed]

Where can I find the HTML for a Wordpress site? I'm using the "X" child theme. I found a tutorial explaining how to achieve an effect that I want and it says that "All I need is an HTML markup and to ...
0
votes
1answer
1k views

How to use JQuery Marquee in Wordpress?

I'm using <marquee> in my homepage , I want to use jquery marquee instead , I've added script in my header , in usage it says i have to use $('marquee').marquee(optionalClass); , how and where ...
0
votes
0answers
21 views

how to adding css classes when it has 2 level children true wp nav_walker

I need to create a website true bootstrap 2.3.2 ( cause of sub-menus). and it has 3 or 4 level in menus. <div class="nav-collapse collapse"> <ul class="nav go-right"> ...
0
votes
1answer
16 views

Automatic add space if user enters number(any digit)

I have one input field in that I need to check that if user enters any digit then it automatic add spaces i.e. When someone enter a phone number like 0499287909 then in string should change the ...
0
votes
1answer
124 views

featured post as div background

Ok I didn't find an answer yet.. because my code is different.. I want to set the featured image as the div's background but I don't know how to do that.. html, php and css collide in one line.. This ...
0
votes
1answer
46 views

Need help removing […] after excerpt

My website is watersedgeofshelton.com and i need help removing the [...] after the excerpts on the blog posts (under activities, marinas and restaurants" I read that I had to add this code to my ...
1
vote
1answer
118 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
48 views

How to display a raw HTML page (bypassing WordPress theme, scripts, etc)

I'm a software engineer with a WordPress site with hundreds of pages, and it's working very well. There are certain cases, however, where I'd love to be able to code my own page with no interaction ...
0
votes
0answers
16 views

Link in widget title [duplicate]

how can I add a link in the widget title? HTML is not permitted, and until now I've used the Widget title links plugin, but with the latest version of Wordpress, it doesn't work anymore. I've tried so ...
-3
votes
1answer
27 views

File based on User Source

I would like to show my static html page to the users who come from Facebook and the default WordPress Page for other users. Anyone please let me know how can I do this?
2
votes
2answers
3k views

How do I change the value of lang=en-US

I have noticed that in the <html> tag on my WP site that the language is defined as US English. <html lang="en-US" prefix="og: http://ogp.me/ns#"> I would like to change it to British ...
1
vote
1answer
37 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 ...
1
vote
1answer
20 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
0answers
15 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
17 views

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

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
-1
votes
2answers
48 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 ...
1
vote
2answers
41 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 ...
2
votes
0answers
17 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 /wp-...
2
votes
1answer
147 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
vote
1answer
104 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 class="trending-title"&...
0
votes
1answer
46 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
56 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
113 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
44 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 ...
1
vote
1answer
55 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 automatically?...
1
vote
0answers
192 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" ...
0
votes
1answer
27 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 ...