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

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
13 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
14 views

Scroll-linked effects in Firefox causing Issue [closed]

In Firefox my page doesn't load correctly in some situations. If I'm at the very bottom of the page and do a hard refresh the main navigation menu sits at the bottom of the screen until the page is ...
0
votes
0answers
16 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
18 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
30 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
22 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
40 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
81 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
14 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
14 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, ...
-1
votes
0answers
42 views

How to open wordpress posts in new tab when posts page is in another page's iframe?

I have a homepage which has an iframe showing latest posts from my blogs site. But if any post is clicked it opens in the same iframe which I want to change into new tab. Please suggest any solution. ...
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
26 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
78 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
13 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
17 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
23 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
23 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
21 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-...
1
vote
1answer
13 views

How do I make HTML output work when using the customizer?

How do I make HTML code that is written in the customizer output properly? I need a line break to appear where it has been placed but I am not to get it to output properly.
0
votes
2answers
19 views

Function returns text instead of html [closed]

I use this function to add prices to my WooCommerce variation dropdown menu. I am trying to wrap the price with a span tag but it's displaying the tags as text. add_filter( '...
0
votes
1answer
30 views

Make textarea required. Help [closed]

i cant make textarea purchase note required in woocomerce dokan can i use purchase note for selling keys and soft? Its safely?
0
votes
1answer
19 views

How to echo a PHP Code After the Content

i wanted to execute a code after the Content of each blog post. I just want it to be on posts and not on pages. I could execute simple html by the method but could not put the following content. ...
0
votes
2answers
9 views

Phantom strong tags in wordpress

So as you can see, there are some strong tags that wordpress is obviously putting in on its own (of course because I never put them there) and appending it to my elements. I've also found two strong ...
0
votes
0answers
14 views

re-shuffle/re-order image after x number or minutes or after refresh

Quite desperate with this one as i don't know how can i accomplish this idea. I'm creating my home page using using my theme (in wordpress) but somehome it lacks functions and i don't see any plugin ...
1
vote
1answer
17 views

How to display a value from a radio button in the options menu in wordpress

I'm a little stumped on this one. I'm not very experienced when it comes to PHP, but I have figured out how to display a value inputted from a text box. I'm now trying to do the same with a radio ...
0
votes
0answers
20 views

PHP Category Filter

I am very very (very) new to all of this and have a project in seminar I'm doing. Now, the task is to add lines of code to .php file to create one more filter field to this site - https://www....
1
vote
1answer
20 views

Shortcode content output but not in correct place

I have created a shortcode that gets information from an ACF repeater field... function display_websites_shortcode() { ob_start(); // check if the repeater field has rows of data if( ...
0
votes
3answers
24 views

Title has word broken when viewed in mobile [closed]

I am designing a website using the Renden Free theme, and my problem is that some long titles, when viewed in mobile, have words broken in half. For example: As you can see, the word "Corporal" gets ...
0
votes
0answers
22 views

Valid Wordpress html elements

I'm working a plug-in on the admin side of it. I would like to show a html listbox element on the form. But no matter what I try, it will only show 1 entry. It is scroll-able, which I want when it ...
0
votes
1answer
36 views

Navigation menu disappears when I hover the mouse [closed]

When I hover the mouse on submenu of our products section it automatically disappears, so I cannot click on the sub products. can you please help us out? website
0
votes
1answer
17 views

how to modify html on homepage (no home-page.php in my theme)

I would like to modify the html in on my homepage from <div id="slide-6996" class="slide slide-6996 cycle-slide-active slide-left light" style="background-image:url(http://18.205.33.160/wp-...
0
votes
0answers
11 views

Wordpress or Cherry Framework keeps reverting HTML changes

Has anybody else had this problem? We keep making changes to the social media banner on our website, but the changes revert after a few hours. If you had this problem, could you tell me how you ...
0
votes
1answer
13 views

Display posts side by side with custom query

I'm trying to organize my posts side by side but they keep being displayed vertically. This is my code: <div class="row agenda-box justify-content-start padding minheight-40"> <div ...
0
votes
2answers
16 views

Is there a way to control both Order By and Order query parameters from one input field

I want to give the user the ability to order posts by post date/alphabetically either on ASC or DESC order through a select input on an archive page. The easy way would be to show two inputs on the ...
0
votes
0answers
16 views

Move plugin css to another area in html markup

I'm using <noscript id="deferred-styles"> <link rel="stylesheet" href="mysite.com/css/main.css"> </noscript> to defer css styles. I have some plugins adding css which I want ...
0
votes
1answer
21 views

Wordpress custom blockquote with black background & white text?

I have no idea if I'm in the right place, but anyone help me customise my site? My current wordpress theme has blockquotes that look basically identical to regular (bold) text. Could I use CSS ...
0
votes
1answer
15 views

WP renders HTML wrong when adding widgets

Here is my code for a footer. Footer element should have div.footer-widgets, nav, and p elements as children. But for some reason wordpress puts everything to div.footer-widget element (I've included ...
0
votes
2answers
32 views

Where can I edit/see the HTML of this Wordpress free theme?

the answer to this one will probably be obvious to many of you, but I recently decided to make a website for my girlfriend and expand my knowledge while doing that. So here is my dilemma: I am using ...
0
votes
0answers
7 views

How to allow only auto indentation on TinyMCE

I want that Wordpress (or TinyMCE or any plugin) could auto indent my HTML (as switching from Text to Visual does), because I have lots of old posts that I need to edit and they are kind of minified. ...
0
votes
1answer
84 views

Serve text/html from wp-json API via WPEngine, headers not being set properly

I have read multiple entries in the WP Codex, numerous articles and Stack Exchange questions. I have a fully functioning API for a private plugin I am developing, but when moving it into production on ...
0
votes
0answers
23 views

How to add an ID to an existing HTML element?

I'm using the Press Customizr theme. I need to add an ID (not class) to an existing HTML element from the theme (specifically it's the Related posts section) Is there a way I can do this with a ...
0
votes
1answer
39 views

Correct way to make static pages editable in wordpress

I am in the process of converting a small static website with 5 pages into a WordPress site. I have created a custom theme and created the pages (Home, About Us etc) from the Wp backend. I have ...
1
vote
1answer
45 views

How can I fix the redirect chain after implementing ssl on wordpress?

After implementing ssl on wordpress, I wanted to force a redirection to a site with the following characteristics: non www, ssl, with trailing slash Unfortunately it only works in some cases. For ...
0
votes
1answer
17 views

Create multiple custom HTML pages

I need to make a few unique "landing" pages each with unique designs. They will each be one off. I am looking for a way to organise these pages. What I used to do is have a subfolder in the theme ...