Stack Exchange Network

Stack Exchange network consists of 175 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
11 views

overflow hidden not work in safari with pseudo element

hello everyone I'm trying to create an animation with elements in css with simple cubes in tresparenza. Everything works perfectly if it weren't for Safari giving me display problems. Can you help me? ...
0
votes
1answer
16 views

Changing default img html markup but not in admin back-end?

Based on some posts on Stack and ACF forum I've created code for changing default img html markup for lazyload script lozad.js. It's works great, but works also in admin back-end. I was trying to use ...
0
votes
1answer
46 views

WooCommerce: The model of e-mail is displaying only the html, not css

I'm using the version 3.4.7 of WooCommerce and configuring the e-mails, I stare with a strange thing: the templates didn't appear the css. I experienced this in all of my sites, this is a test site ...
0
votes
0answers
15 views

beaver builder or any page builder not works with my template

I have a template that I convert it from HTML to Wordpress. so when I install any page builder plugins like beaver builder it's not working. What could I do? should I add code to function.php or ...
0
votes
0answers
25 views

Remove <figure> HTML tags from all posts

How can I remove tags from all posts on WordPress? I want to remove that tag from my WP feed: mkt-d.hospedagemdesites.ws/wp/feed. I'm using that feed to output posts in an external blog and the ...
0
votes
2answers
24 views

Make a full-width wordpress page

Thank you for reading my question. I can't seem to figure out a way to make this page full width (or almost full width). When i am on tablet and mobile phone it does fill the screen almost entirely. ...
0
votes
0answers
13 views

Is there a way to transfer all quotaions that are made on my blog posts on a new post automatically?

Basically, I want all highlights/quotes as they are being highlighted on my blog posts to be pasted or transferred to another post. Is there a code that can be made for this?
0
votes
0answers
27 views

Gtmetrix: avoid bad requests

Gtmetrix is showing avoid bad requests, and saying The following requests are returning 404/410 responses. Either fix the broken links or remove the references to the non-existent resources. The ...
0
votes
1answer
20 views

Remove Line Breaks From Cell Content in WordPress

A line break in a table cell is converted to ⟨br ⁄ ⟩ when it is saved. I must remove all line breaks from the cell content else there is excessive space between paragraphs, list items, etc. It makes a ...
0
votes
1answer
27 views

How to center all text body in single.php at once?

I'd like to center all of the text bodies (or content body before "read more") of all posts (in single.php) at once with simple (or advanced) code. How can i do that?
0
votes
0answers
11 views

Fixed widgets in reduced navigator

I have a problem in my web page,when the navigator is full screen every thing is clear and in place but when i reduce the window of the navigator for multi task the widgets on my website (charts and ...
0
votes
0answers
16 views

How can I create a shortcode from an html and php code written together

How can I create a shortcode from an html and php code like below: function hire_feedback_surveyyy() { $product_id = 21876; // We get all the Orders for the given product ID in an arrray $...
0
votes
0answers
27 views

How to add IFrame code to a WordPress page? [duplicate]

I'm looking to run a competition on Gleam, and they have given me an IFrame code so that I can mirror that Gleam page on my WordPress site. So the thing is, when I enter the code on my Wordpress page, ...
0
votes
0answers
25 views

Change layout of product attributes for variations in WooCommerce single product pages

I have this layout in Woocommerce single product pages for product attributes for variations (on variable products): <div class="custom__radio-btn"> <input type="radio" name="lines" value=...
0
votes
0answers
14 views

Unable to autoplay and loop a cinemagraph from Imgur

I've tried a number of different codes but they don't seem to work. This is my current one, and although it loads fine, it doesn't autoplay or loop, and if I hit play, it would either not loop, or ...
0
votes
1answer
30 views

Handling PHP/HTML inside the output of a shortcode function

I'm not sure what I'm doing wrong, but the output of my custom shortcode isn't producing on the front end of the page. I need to load a script from within the output code of a shortcode function. ...
0
votes
1answer
35 views

How to keep HTML form field that is conditional hidden with javasript hidden after page reload?

I have an html form in which I conditionally hide a field with javascript if an option is selected in the dropdown. The javascript condition works fine but when the page is reloaded the condition is ...
1
vote
2answers
82 views

Wrap gutenberg block ‘div’ in other elements/extra HTML

I’m trying to add HTML wrappers around a block to create a clipping effect, something like the below code. It has been suggested this might be possible with the block save or block edit functions? I ...
0
votes
1answer
50 views

Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?

WordPress 5.2 destroys structured data by adding rel="noopener noreferrer" to widget output (also to shortcodes): How to display the shortcode output without code change? This feature was added in 5....
1
vote
2answers
44 views

How to change redirection route to a php page for making it only accessible by logged-in members?

Background of my problem: I'd like to mask external download links as internal links and to be only accessible by logged-in wp users at htaccess level or with PHP script but when redirection happens ...
0
votes
0answers
53 views

GravityForm HTML field turn operators into entities

I'm trying to add JS script into HTML field inside Gravity form editor. It works fine on my site but the client who is using Mac had two problems. The first one was that when he saved changes script ...
0
votes
2answers
18 views

CSS - Initial HTML Margin Issue On WordPress Site

This is a WordPress site and I'm using bootstrap. Site is https://doodle.gatewaywebdesign.com/ Basically I'm just trying to get rid of the initial top margin. So instead of this: It should look ...
0
votes
1answer
19 views

remove string: 'custom content…' from every page

I'm not quite sure how this came about, but every page on my site has the text 'custom content...' appended to the end of the body. The string appears within <p> tags on the frontend. I've ...
0
votes
1answer
15 views

Display child-page links in sidebar on both Parent Pages AND Child Pages

I am currently developing a WordPress website that has a sidebar on most of the pages, this sidebar is supposed to display a small navigation of any child pages that are under the current parent page ...
0
votes
1answer
58 views

Add Codepen animation as Preloader to WordPress

I found a CSS animation snippet on Codepen, and would like to add it in my WordPress site for preloader animation. I have seen similar question being asked on here , but I couldn't resolve this from ...
0
votes
1answer
15 views

How can I make my custom shortcode work in a Custom HTML Widget?

I created a plugin and tried to use its shortcode in a Custom HTML Widget, but for some reason it's outputting [my_shortcode_name] instead of executing the shortcode. The shortcode works fine if I ...
-1
votes
1answer
26 views

Nav menu custom html:

I've been looking to the answers on this site, but they lack information on what files to edit and/or the path to them, and where or how you activate and can see the changes. For example, this ...
0
votes
1answer
11 views

How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?

Using the wordpress gallery below, I want to show the html content of an anchor tag so that when I click on a link to get to a specific gallery I will navigate to the anchor tag in the description ...
0
votes
0answers
11 views

gallery with post category and custom fields

I'm trying to create a YouTube gallery where i use Posts to get info of the iframe and Feature image. I've built the following gallery: <?php global $post; $args = array( 'posts_per_page' => -...
0
votes
1answer
16 views

HTML tags in bloginfo description

I'm trying to set some <span> tags in the bloginfo description. So I put this in the blog description field: <span class="name">Archive | Navarro Vives</span> <span>is a point ...
0
votes
0answers
19 views

Upload automatically html files

I have about 1400 html files and I want to upload them in a wordpress site where I am administrator. I want to publish them as blog posts. How can I achieve that automatically? Thank you.
0
votes
0answers
17 views

CSS not working on number input nested in a table - Custom Plugin

I am having trouble getting my css to work for a number input which is nested inside a table on my custom plugin template page. I've used wp_enqueue_style() to load my css file and it has worked well ...
0
votes
2answers
20 views

Path for php file for inserting data through html form

I have a HTML form which inserts data into a custom table. The code for inserting the data is in a PHP file . My question is where do I place the PHP file in the WordPress filesystem? I have tried ...
0
votes
2answers
40 views

How can I add a <br> so i can show sale price under normal price

I need to show sale price under normal price, not on the same line
0
votes
1answer
47 views

sessionStorage saves input value in browser but it is not loaded in the form field

I am trying to save the input value of form fields but only one of the fields returns the value on page refresh. I can see the input value of the second field in sessionStorage in chrome but it is not ...
-1
votes
1answer
47 views

ACF repeater image in video poster with jquery

I'm having problems for jquery to send a url from an image to an html tag. I explain; I have an ACF repeater with 5 variables, including an image intended to be a poster of a video and what I'm trying ...
0
votes
1answer
169 views

<!doctype html> : Failed to load resource

I am using the code below: <!doctype html> <html lang="<?php language_attributes(); ?>" dir="ltr"> <head> <meta charset="<?php bloginfo('charset') ?>"> &...
0
votes
0answers
17 views

Collapsible menu on post sidebar only expands and does not collapse

I'm working to improve an existing wordpress theme that was built for my organization. I've run into a problem that I'm not familiar with: the archive menu displayed on each post will only expand, but ...
1
vote
0answers
17 views

User-specific access to folders in Wordpress site

I want to use selfhosted Wordpress site to show GIS maps to my clients. I create web maps with gqis2web plugin of QGIS program. It creates folder containing index.html and subfolders with js, css, ...
0
votes
1answer
18 views

Images with overlay

I have some images in a container that I would like to add an overlay and an icon. This doesn't work out of the box, but I found some code that helped: HTML: <div class="main"> <span ...
0
votes
1answer
28 views

jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser

My website's favicon that is seen in tabs of chrome disappears when i use the following jQuery. Removing this script from head makes the icon visible. But why a seemingly simple and unrelated code ...
-1
votes
1answer
19 views

How to Know If I've Correctly Inserted Alt Attributes Into HTML

Apologies in advance - HTML isn't really my language and I'm new to Stack. Hope this is in the right place! I'm working on inserting alt attributes for all the images on this WordPress website, but I'...
0
votes
2answers
223 views

Cannot set property 'className' of null at setThemeFromCookie

I am coding in WordPress to make a button to toggle body class from light-mode to dark-mode. i was experimenting with trying to add a cookie so that the preference is remembered for the browser. But i ...
0
votes
2answers
14 views

Unable to insert current username into custom table through html form

I have a custom html form from which I am trying to insert records into a custom table .My problem is getting the current user name and inserting that value into the custom table. When the user clicks ...
0
votes
0answers
18 views

Modifying the post pagination next to redirect to another webpage

Heeey everyone I am using a break page on my posts, so that my long posts can be cutted into 3 different sections, each one will be shown after a click on the next button what I want to acheive is ...
0
votes
0answers
20 views

Random newlines inserted when pasting a chunk of HTML code

I have been coding in HTML for years, but I am a bit of a Wordpress virgin. After failing to find an answer to my problem I submit it below. In order to extend a Wordpress page quickly I pasted raw ...
0
votes
0answers
26 views

Using an iframe for a form help

I need to add an html form to my homepage so I have added an iframe using raw html. Everything works correctly on the desktop but when I try to use it on mobile it gets messed up. Instead of our ...
0
votes
0answers
24 views

Allow access to .html extension files in non-word press pages on same domain

My website directory structure looks like: public_html/ public_html/WordPress/ public_html/personal/ "personal" contains various .html (non-Word Press) web pages. I am able to access php ...
-1
votes
1answer
46 views

image overlay on image not working in wordpress, but works in “normal html editors”

i've got a series of photos, with an overlay, it seems to work fine in an html editor, but then when i switch it over to wordpress (wp bakery html block) that overlay doesn't seem to work Any idea's? ...
0
votes
1answer
15 views

Display html code, not the tags

I am using a theme and I want to modify it in order to use html code in a text field. This is the part of the code that renders this field: do_shortcode( wpautop( esc_html( $sectionData['left-...