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
19 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
26 views

Navigation menu disappears when I hover the mouse

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
13 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
2answers
16 views

Trouble finding the correct element

I'm really sorry to ask this question here but I am having a tough time with this. On my blog I have a heading that is assigned class col-sm-6 (which I know is bootstrap class) and this class is set ...
-1
votes
1answer
46 views

Separate code and presentation HTML and PHP

I was told that I should have the scripts enqueued only when the shortcode is used also to prevent direct access (use die()) to plugin file and separate the HTML and PHP but for this function, I do ...
0
votes
1answer
12 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
15 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
14 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
18 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
0answers
26 views

How to add google structure data in Blog Post? [migrated]

I want to add Google structure data in WordPress Blog posts, pages. Where i need to place Structure data (in body or head section)? What is the correct schema structure for Posts or pages? Thanks
-2
votes
0answers
29 views

IF no taxonomy chosen THEN display alternative text… in this function [on hold]

this code has been checked by experts and is deemed to be "malicious free code" I have this function that displays the taxonomy level of a hierarchy. For example... Let's say I have the taxonomy ...
0
votes
1answer
14 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
31 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
6 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
22 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
30 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
30 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 ...
0
votes
1answer
27 views

How to upload my HTML/JS/PHP website to WordPress and make it password protected?

I do have a static HTML website which is working with JS and PHP. I would like to upload it to WordPress and make it accessible only with a password. Is this possible? Regarding uploading: I was ...
0
votes
0answers
15 views

Rewrite html of widget display-posts

I use the widget display-posts with this shortcode: [display-posts category_display="true" category_label="" category="homepage" include_excerpt="true" excerpt_length="200" include_excerpt="true" ...
0
votes
1answer
29 views

Hide CSS class only in single post pages

I need to hide some elements in my posts pages, but not in all the other normal pages. Now they appear in all my Wordpress site (single post, page, etc). How can I hide by CSS an element? This ...
0
votes
1answer
20 views

Whether an <html >tag is required in header?

can i have a structure like below? <div> <head> </head> <html> <body> <body </html> <footer> </footer> </div> I am asking this ...
0
votes
0answers
14 views

Warning: Cannot modify header information - headers already sent when trying to download a simple text file [duplicate]

I want to be able to click my "Export" button and have a text file downloaded. When I try this, I get the error: "Warning: Cannot modify header information - headers already sent ....". I have a ...
0
votes
1answer
24 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
14 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
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
98 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
32 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
91 views

Inserting Schema Markup (JSON-LD) Manually with Custom Fields or any Better Ways?

what is a simple and reliable way to insert schema markup (JSON-LD) in my static WP pages manually? My question is not about creating the JSON-LD code, but how to implement it in the WP source code. I ...
-1
votes
2answers
27 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
2answers
36 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
255 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
12 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
29 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
33 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
24 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 ...
6
votes
2answers
715 views

How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)

I am upgrading Font Awesome 4 to version 5 which introduces both integrity and crossorigin attributes to the <link rel="stylesheet"> markup. Currently, I am using: wp_register_style('...
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
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
49 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
38 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
36 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
1answer
259 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
1answer
22 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
23 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 ?