Questions tagged [html]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Is there a better way to output HTML as a shortcode?

This is my first post! Apologies in advance if I miss any conventions (and please let me know). Just a general question - when outputting a shortcode that requires some dynamic data to be pulled in ...
0 votes
0 answers
7 views

Is there a way to prevent wp_head from outputting self-closing tags?

I'm a beginner in WP development, so maybe I'm missing something obvious. Is there a way to prevent wp_head from outputting self-closing tags? Here are two example lines taken from my website: <...
  • 1
0 votes
1 answer
8 views

Can I upload my HTML/CSS/Javascript game onto a Wordpress page?

I've written a basketball simulator game in plain HTML/CSS/Javascript. I also have a Wordpress site. Can I upload my game, so my visitors can play it? I know that if I had written my website from ...
  • 103
1 vote
2 answers
27 views

Parse error: syntax error, unexpected '}' in

I'm fairly new at this, so please excuse my ignorance. I'm trying to order my posts in the site's categories with a button, 'ascending' / 'descending'. I'm trying to use 'sortit' function because that'...
  • 21
0 votes
1 answer
15 views

How could i open two url with one hyperlink click [closed]

How could i put two urls to be opened in two different tab as a hyperlinks with one click on the text on wordpress?
0 votes
0 answers
13 views

Load wp_editor on button click

I am working on creating a form that when you click a button, new elements are added to the form. I have it working except I'm having trouble figuring out how to load a wp_editor when I click the ...
0 votes
0 answers
17 views

Need help with wordpress audio preload

I am using defualt worpdress audio player and i dont want audio to be preloaded by default that is instead of browser defualt option. I want it to be preload=none by default. Since i post too many ...
  • 1
0 votes
0 answers
11 views

How to enqueue structured data as file - jsonld file seems not to work

I would like to add my schema / rich snippet / structured data via functions.php: wp_enqueue_script( 'my-schema', get_template_directory_uri() . '/assets/schema/organization.jsonld' ); The ...
  • 113
0 votes
0 answers
19 views

Running js in html code with same content

Before asking this question, I read a lot of articles on the site but I couldn't find how to do it. My html body also has sections with the same div names, inside these sections is the section I run ...
0 votes
1 answer
22 views

HTML code not working in Wordpress

I have this HTML code that haven't been able to display in a post or page. <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="...
0 votes
0 answers
12 views

How to make a slider hearder?

My goal is to make the same kind of header as the bottom part of https://www.hotukdeals.com/' header where you have an arrow on both sides and between them, all the categories that the website has. I ...
  • 1
0 votes
1 answer
18 views

Use HTML tags in 'Appearance -> Customise' interface

When going to 'Customise' within WordPress and the left sidebar pops up, I am unable to use styling tags in the boxes that come up. Example: the theme I am using has 'Content title' and 'Content text' ...
  • 101
1 vote
2 answers
51 views

How Do I Add HTML Support to the Additional Category Description Field?

I created an additional description field for categories, but what I write in html is saved in MSQL without html, how can I add HTML support to this field? For example, I write a statement like this: &...
0 votes
1 answer
47 views

Code for unique user visit count on every page Wordpress

I am working a project and I've decided to develop a custom plugin for it and I want it to show every users page visit count somewhere in the footer.(For example, if a user clicks on a page, it would ...
0 votes
0 answers
23 views

Wrap title and excerpt in a div (latest posts block)

I am trying to achieve to following the desing with the latest posts block: On the left is the features image, on the right the categories, title, excerpt and a read-more button. This is what I got ...
  • 1
0 votes
0 answers
13 views

Search AJAX Filters - Multiple Query Loops Into One Loop (Optimization)

I followed a tutorial on how to make AJAX filters and I have a concern about the loops. I am using bootstrap accordion to display the search ajax filters (ex. https://prnt.sc/gxrJE9_GocOl). I am ...
0 votes
0 answers
15 views

Font size of HTML content

I am developing a plugin. In this plugin I am outputting some HTML using short-code. User can choose font size of HTML content from Admin Panel. This plugin is saving font size as meta value in ...
  • 397
0 votes
1 answer
28 views

HTML Img with data:image src gets sanitized in admin?

In the WordPress admin panel (dashboard), I want to add an image inside an ACF field description. Since it's a simple SVG icon, I want to load it using <img src="data:image/svg+xml..." /&...
  • 133
0 votes
0 answers
24 views

Show preview of wordpress posts on external html sever

I used to have this working, however, ionos started chartging me for having wordpress, when I said I am not paying for a free site they deleted access to my blog. All the program files are there but I ...
  • 1
0 votes
1 answer
34 views

Displaying images outside the content

I am trying to achieve to following design: This is what I got so far: I'd like to have the bottom images as in my design example. This is, how my single.php looks like. I just can't find a solution ...
  • 1
0 votes
0 answers
11 views

I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file

I have html form and need to make it work in text editor on template. Only problem is it has .sccs styling file because there is adjectance combinator. Code is in https://codepen.io/fede19/pen/zYZMbXB....
0 votes
0 answers
11 views

Directorist - Dropdown doesn't open

I am using the Directorist plugin, and in the Filters, the select dropdown has a bug in it. What I found out is that it is a SPAN with a SELECT inside. This is the page with the filter on the end of ...
  • 1
0 votes
1 answer
18 views

Add an anchor link to a 'plain' HTML file, without over-writing the entire site?

I have a simple site where WordPress provides the general look-and-feel, and overall page structure, but the important pages are actually plain HTML, styled by Bootstrap. These are manually created in ...
  • 27
0 votes
0 answers
9 views

Use Mail-Tag from Contac Form 7 in a script

Hello i use Contact form 7 to send an email with json format inside the body we need to replace every " inside the mailtag. We came up this this solution but we cant pass [Presentazione] that is ...
0 votes
0 answers
28 views

custom add note meta box with add button in wordpress

I'm making a custom note meta box for plugin, and I have a note box input and one 'add' button in the box with. The button saves the text but does not move the text to the notepad but instead stays in ...
0 votes
0 answers
28 views

Effeciently adding Checkboxes to TablePress table cells

I’m creating a frontend checklist for a card collection on Wordpress. I’m combining two plugins. TablePress to create the table and Frontend Checklist to add checkboxes. The idea allows the User to ...
0 votes
1 answer
27 views

WP HTML Templates - Any way to get bloginfo() or the path to the theme folder?

So in our new architecture for themes, we want to use Gutenberg themes with html templates. Problem is, when we need to call anything from the theme folder, we have to use the full URL. So if the ...
  • 808
0 votes
0 answers
18 views

how to let users upload their custom cover image

I have a dashboard for users (one page using elementor and buddyboss to change stuff like name profile pic etc). I want users to be able to upload a custom cover image. I found some code that almost ...
1 vote
1 answer
24 views

How do a I add an attribute to <html> element (when using block theme)?

I have a WordPress website that is using the Twenty Twenty-Two block theme (more specifically, a child theme of it). I want to edit the <html> root HTML element to add an attribute. I want this ...
  • 595
0 votes
1 answer
57 views

Make PHP work with HTML tags

I have the required code for what I want <?php if ( is_singular() ) { <?php if (get_post_meta(get_the_ID(), 'square_image', true)) { ?> <img src="<?php echo get_post_meta($...
  • 167
2 votes
1 answer
36 views

Javascript code inside "<# #>" in core WordPress files .php

I found some interesting embeding JavaScript mix with HTML in WordPress php files, for instance: <?php // Template for the Attachment Details two columns layout. ?> <script type="text/...
0 votes
0 answers
120 views

Time Delay a URL Redirect for Specific Page

I need to set a time delay redirect for a specific page. Reason is because we have a URL redirect on the specific page and it is not registering for a Google Analytic page visit conversion. So we need ...
  • 63
0 votes
0 answers
103 views

how to changes mobile menu toggle breakpoint in Wordpress

I want to change the mobile menu toggle breakpoint in twenty-twenty one theme, want to show on 767px but it shows on 481px by default.
0 votes
2 answers
28 views

How can I get the search form to be selected automatically?

There is an icon to open the search form on my site, and when it is clicked, the search form opens in full screen. I want the search form to be selected automatically, how can I do that? Here: https://...
1 vote
0 answers
30 views

Populate dropdown with Child Pages based on Parent Page chosen

I'm trying to populate the Child Page dropdown with that of the selected Parent Page - If a specific Parent page is chosen it should fill the second dropdown with all Child pages listed under that ...
  • 11
0 votes
0 answers
57 views

Cascading dropdown select search based on Parent Page & Child Page

How would I create a cascading dropdown select search where the first dropdown would host selected Parent Pages and the second to display the Child Pages of the selected Parent. When submit button is ...
  • 11
0 votes
0 answers
22 views

WordPress cascading dropdown selection search based on Parent Page & Child Page

How would I create a cascading dropdown select search where the first dropdown would host selected Parent Pages and the second to display the Child Pages of the selected Parent. When submit button is ...
  • 11
0 votes
0 answers
28 views

Display WordPress search results based on the selected Sub-Category

I'm trying to create a search using dropdowns in WordPress. I've got two dropdowns, 1 - Parent Category and 1 - Sub-category. The Sub-category will show automatically based on the selected Parent ...
  • 11
0 votes
0 answers
42 views

PHP inside echo HTML

I am a little bit confused about the following code: i need to add span class="<?= $styles['core']; ?>" <?php if( ! defined( 'CP_VC_ACTIVE' ) ) { echo '<li><span class=&...
0 votes
1 answer
102 views

Ignoring <a> links from the_excerpt

I am looking for a way to ignore any <a> links in the content WP displays in the the_excerpt - is there a way I can achieve this? The excerpt is not actually used on the WP page itself, so the ...
  • 3
0 votes
0 answers
106 views

html form: redirect page after form completes submit function and posts data

My form looks like the following, it's inside functions.php <form style="text-align: center;" action="https://website/checkout/" method="POST" onsubmit="return ...
0 votes
0 answers
23 views

Putting custom html/js page into Elementor as it's own block

I have a working custom html/javascript page that I created and then FTPd into my wordpress site as a custom template which I'm applying to a blank page. However, I have elementor pro and though I may ...
  • 113
0 votes
2 answers
263 views

Add Paypal button redirect to a specific page after completing

I have created a new page on my WordPress site to test the paypal payment flow. I have subscription based products. Attached code is for the paypal subscription button code. <div id="paypal-...
0 votes
0 answers
27 views

How to save Setting pages data to the database?

I have created a setting page and I have a basic form in there I want to save its data in the database how can I achieve that. This is the HTML form: <label class=""><?php _e('...
0 votes
0 answers
17 views

add the attribute value above the english product title

[1 [i have tried each and possible way it is not changing its position ]
1 vote
0 answers
41 views

How to Disable auto id attributes in Heading tag?

I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’...
0 votes
0 answers
49 views

Line break before headings (<h2>) appears from nowhere

So, in the database row i've the following html code in post_content: Solo pochi giorni fa, esattamente il 15 marzo, è stato presentato durante l'ultima edizione del SXSW Online un suggestivo ...
  • 101
0 votes
0 answers
26 views

WordPress User Meta value variable into Google Gauge Chart

I am trying to insert a Google Gauge chart on my WordPress site created with Elementor using data from WordPress user meta (current logged in user). Using the code below, the chart is displayed with a ...
0 votes
1 answer
23 views

Benefits to using semantic HTML in post content? [closed]

I've been reading up on semantic HTML as a means of improving accessibility and SEO, but I'm still learning about the implications of semantic HTML. One question I have is whether there's any point to ...
  • 3
0 votes
1 answer
280 views

php esc_html_e with an html link inside not working

I am trying to use php esc_html_e with a inside and must be missing something since I cant get it to work. My code is simple and is: <p><?php esc_html_e('You are not logged in. <a href=&...
  • 1

1
2 3 4 5
24