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

Questions tagged [html]

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

0
votes
0answers
6 views

Widget that allows arbitrary HTML (e.g. onclick attributes) without filtering it?

How can I add a widget that allows arbitrary HTML (e.g. onclick attributes) without filtering it? When I try to include an onclick attribute in WordPress's 'Custom HTML' widget, I'm not allowed to, ...
0
votes
1answer
20 views

Can't add image to site via php

I'm modifying a WordPress child template which is working live with an ad-bar at the very top of the page just below the </head>. I have included the code being used on the working site below. ...
0
votes
0answers
12 views

Make submenu stay open until other menu item is hovered with submenu's

I want to create a menu with a submenu in my wordpress site like this website has done: https://www.opmaatzagen.nl/ When you hover a menu-item a submenu is becoming active and stays active until you ...
0
votes
0answers
8 views

Divi Theme on mobile swipe right [on hold]

For those who are expert in using Divi Theme how can I remove the swipe to right menu. When swiping far right you open up the menu I don't want that to happen.
0
votes
0answers
26 views

Display avatar and username in html

Previously I used the following code in the functions of my theme. In the main menu I created an item called #profile_name# and the username of the connected member was displayed. add_shortcode('...
0
votes
0answers
19 views

How do I set my own field names within a WordPress form?

I've migrated my website to WordPress a while ago and it's been going really well. I'm planning to migrate my CRM from an ugly Odoo/Zoho combination (don't ask) to Salesforce and Salesforce makes it ...
0
votes
0answers
24 views

Get Post Primary Category

I have troubles with getting the posts primary set category. How should I achieve this? My code: global $post; $terms = get_the_terms( $post->ID, 'event-categories'); if($terms) { foreach( $...
0
votes
1answer
27 views

How to safely return the HTML?

I have return '<button type="button" class="btn btn-success">Open Now</button>'; If I echo this it will work fine. I am getting an warning like echo is used without escaping. I know ...
0
votes
1answer
28 views

Saving html into postmeta without stripping tags - safe?

I have a product description box, I want to add the HTML from the description as postmeta, for some outside reasons I can't unescape the code coming back out of post meta. Is it safe to just ...
0
votes
0answers
8 views

Divi full screen popup/modal

I have a page built with the Divi editor and I would like a popup to appear when I click an image. I understand that I would need to use javascript onclick events, but where exactly do I put the HTML ...
-1
votes
2answers
26 views

How to customize posts in WordPress by using HTML and CSS?

I've tried to find the information on the Internet and stackoverflow, but there is nothing about it. So I've migrated my website(html,css,js) to WordPress(index.php,header.php,footer.php etc) and I ...
0
votes
0answers
14 views

How do I import an Axure prototype to WordPress?

How can I transfer my Axure prototype to WordPress? Having my Prototype exported in HTML. Do I need a developer to support? Can the client update info on their website once I am done?
0
votes
2answers
33 views

Changable favicon

I am looking for help to put single page favicon that would overwrite global one. Say for example I have wordpress website that is example.com and it has favicon set for every page. What I want is for ...
0
votes
2answers
40 views

current menu item hover not working?

I am trying to change the text color of my current menu item as on hover its green but the background is green so I want the color to be white on hover but it does not seem to want to work, to view ...
0
votes
1answer
11 views

Content going full width even though container is not

Here if you scroll down to the contact section, you will see that the section is going full width, but it shouldn't because its parent container is set to remain boxed in. Why is this happening?
0
votes
1answer
8 views

How to Compress Css/js code in wordpress and increase loading speed?

Currently, I'm working my blog with good server still working and loading speed very slow https://www.startupopinions.com/. I have installed one plugin is total cache and compress the code but still ...
0
votes
0answers
21 views

hentry missing “author”, “entry-title”, “updated”, and hcard missing “fn”

In Search Console I see the following errors: 2 pages with hentry errors: Missing: author Missing: entry-title Missing: updated https://www.anahatatantra.com/pl/jak-miec-wiecej-energii-dzialania/ ...
-1
votes
1answer
32 views

Bootstrap News: Image Modifciation

I want to improve the design of my website (https://pixelbay.net/). Rather than altering the image myself via Gimp every time I want to post, one feature I want to add is that the main category ...
0
votes
2answers
19 views

Insert HTML in post, below nav bar but above content?

I'm trying to insert a dropdown (via HTML string) in to every post I have. I'd like to add it before the post information, but below the website nav. bar and header. In the screenshot, you'll notice ...
0
votes
2answers
27 views

I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

I am actually building a custom theme for my blog and I use single quotes for HTML everywhere like: <div class='div'></div> Does this cause me redirection to index.php?? My site ...
0
votes
0answers
7 views

Thank you page redirect to same after successful submission and the form is overlapped with thank you display in complete width of the form present

Anyone please help <script> function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField....
0
votes
0answers
17 views

Changed my homepage from latest posts to static. works fine on desktop. on mobile it reverts straight to blog posts page

Hello there as per the title.. i just cannot seem to get to the bottom of this. i've cleared cookies etc on my mobile .. i've asked friends to try on their mobiles also.. same problem. much ...
0
votes
0answers
16 views

How to remove space above header?

How to remove extra space above nav bar in Home tab? HTML <header id="masthead" class="site-header clearfix"> <div id="header-text-nav-container" class="clearfix">...
1
vote
2answers
34 views

How to add a class to the <html> element?

I'm using the X-Theme in Wordpress and I ran into an issue where I needed a CSS class in the <html> tag, but only on one page. This is the code I added into my child theme header file: <!-- ...
0
votes
0answers
18 views

Write html code in comments

For example i am writing this html code into comment textarea <pre><code class="language-php"><?php echo esc_html( get_post_meta( get_the_ID(), ‘_spp_count’, true ) ); ?></code&...
0
votes
0answers
32 views

How can I get my pagination loop to display the correct number of total pages?

Currently my pagination is showing 7 posts on the first page and 6 on each page after. This is what I want. The current readout looks like this: . The total count of my pages changes as soon as I ...
0
votes
0answers
11 views

Woocomerce .html end product error

need help, I added .html end at WooCommerce with function at rewrite. And now all, ok, but when clicking at product I got error 404,not found, example: http://ozrubai.lt/parduotuve/vyriskas-dzemperis-...
0
votes
1answer
71 views

Simple way to add custom class and ids to individual Gutenberg blocks

Is there a simple way to add classnames to individual core Gutenberg blocks? Blocks is a great step toward moving to a web where HTML structurally/functionally describes elements, which are styled ...
0
votes
0answers
38 views

How to use {{{ data }}} value into a javascript variable?

I have a line of code which I think is a js template placeholder when I use it like this it returns the value that I need "the price of a product" ?> {{{ data.variation.amz_price_var_uk }}} <?...
0
votes
1answer
21 views

Printing HTML codes

I'm pretty new in PHP, this is a code in the comment.php file: printf( /* translators: 1: title. */ esc_html__( '<hr><Thoughts about '. get_the_title()...
-1
votes
1answer
19 views

Render HTML with wp_send_json

I'm trying to render HTML with wp_send_json, but it doesn't work, HTML is not formatting : It's look like "<i class="fas fa-arrow-up"></i> 1 200" Any idea how can I solve this issue ?
0
votes
2answers
34 views

How can I change the title of an Add New page in Admin for custom post type

I have a custom post type called 'Bookmark'. When users add a new Bookmark in the Admin, the title of the page is Add a new Page Is there a hook (filter) to change this title to Add a new ...
0
votes
1answer
80 views

Woocommerce custom attributes list help

I have a single product page in Woocommerce and on the right, I have a box for different sizes. my current HTML code looks like this: <div class="panel panel-default dimensions"> ...
0
votes
1answer
20 views

Checking if a post contains an html tag

How can i check whether a post contains an html tag or not. suppose someone has posted an image on the post to i want to see on if the post contains an <img> tag similarly if there is a link so ...
0
votes
0answers
12 views

How to set maximum size to file

I don't want to show the file which is above the size i fixed. How can i make it in html. <form method="POST" enctype="multipart/form-data" autocomplete="off'" > <h1>Career</h1> &...
0
votes
1answer
19 views

Where to find HTML to post Adsense Code

I am a beginner WP user and having an issue of where to find HTML area to post AdSense code. I know that AdSense directs it to be posted between & tags, but I am not even sure where this is ...
0
votes
1answer
23 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 ...
0
votes
0answers
15 views

the_content() breaks html while generating exceprt up to “more” tag

So I have a post with img src in it, after which goes the "more" tag. Something like this: text <img src= http://images.com/images/image.jpg> text <!--more--> more text Notice the space ...
0
votes
1answer
19 views

.html form added to a page

I have an external html form that I would like to add to my wordpress developed site. The form links to other areas in the business like the cashiers, so when customers fill the form out, the ...
0
votes
1answer
70 views

Inline style HTML attribute is being stripped from all elements of a post

I am attempting to publish HTML generated from an external party within Wordpress, but I am getting very inconsistent results with style attribute on all HTML elements, in that if I programmatically ...
0
votes
0answers
36 views

How to add <li> tag to WordPress tag cloud widget?

Initially, the tag cloud is in <div> tag, which I have changed to <ul> tag. Now for each tags, I want to place the tags inside <li> tags. How can I do that?
-2
votes
1answer
27 views

Hiding fields a form in via CSS [closed]

So I am trying to hide some of the fields in a form. The input type="" section is fairly easy to hide via ID, however I can't get around to how can I edit the label class. I did try the :nth-child() ...
0
votes
1answer
25 views

WooCommerce multiple custom fields code

I used a guide to add multiple custom fields to the general tab in the product post setting. When I enter data into the fields, it saves and shows on the product page without the problem; The problem ...
0
votes
0answers
25 views

Targeting specific page or custom link in menu

I am outputting all my pages and custom links with this code: <nav class="site-nav"> <?php $args = array( 'theme_location' => 'primary' ...
0
votes
1answer
80 views

How to embed html content into wordpress?

I am writing a report for an interactive graph(https://shunguanmai.github.io/interactive1.github.io) in wordpress. I am wondering if there is any ways to display that graph in my post, not just ...
1
vote
1answer
32 views

How do I edit the php/html for a particular post?

I am new to Wordpress but I am comfortable coding in html/php and want to create custom forms on some of my posts. My site is currently running on localhost. I feel very silly because I have been ...
0
votes
0answers
18 views

Remove querry string from a html link

For perfomance purposes (remove Google Maps Scripts) i use Google static maps to load a lot of locations in my Wordpress website. All maps have differents urls but the syntax is similar. I'm not ...
0
votes
1answer
49 views

Displaying Post Content on tooltip

I'd like to display the content of a custom post type, when hovering over a "question mark icon". In order to get the data, I used the following code (series is the custom post type): ...
0
votes
1answer
32 views

Why .widget-area is outside of .site-content in Underscores starter theme?

The Underscores starter theme offers a specific HTML structure: div.site header#masthead.site-header div#content.site-content div#primary.content-area main#main.site-main ...
1
vote
1answer
25 views

Edit sticky header html - How to locate corresponding php file

I need to make my sticky header work a bit more smoothly. Right now, when you scroll down, the sticky header immediately loads which makes the website jump. It´s bumpy and leads to bad user ...