Questions tagged [html]

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

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

Worpress is replacing code with  

I have a problem while editing my post on Wordpress. After adding <!DOCTYPE html> etc in the beginning of the code is keep getting replace with & nbsp; when I save it. Is there any way to ...
0
votes
0answers
8 views

Inserting our own CSS HTML preloader, removing Kirki's spinner! [closed]

I'm an amateur in the customization and coding universe. We have a WordPress website theme (Florian) which is using KIRKI as a customizer. We want to change Kirki’s default page loader animation (SVG ...
0
votes
0answers
7 views

Custom hero images for wordpress

How I can add custom hero images to my wordpress site. I have WPBakery plugin. Website is done and it uses old revolution slider 5 and I cant make similar hero slide like I needed. My css and html ...
0
votes
0answers
24 views

How to select selected Html Drop Down and paste it automatically into a Contact Form [closed]

first of all its my first question in Stackoverflow, because im hardstuck in a problem right now. So hopefully someone can help me with that. The project: I am building a Product Configurator for a ...
0
votes
0answers
24 views

What are the advantages/disadvantages of ways to use php template files?

I saw people using php files template parts that are basically php files with no (or very little) logic, that only insert/echo the dynamic content in the respective places. Maybe using the ternary ...
0
votes
0answers
26 views

Using Google Analytics in an enqueued JS file

I have a JS file custom-head.js that I have enqueued to run in the header as noted in functions.php here: function enqueue_files() { wp_enqueue_script( 'head_scripts', ...
0
votes
0answers
18 views

Why doesn't the Gutenberg code editor allow code to be nested in sections?

I'm trying to add my own HTML code in the Gutenberg code editor, but unfortunately when trying to save the editor automatically moves the closing tag </section> to the end of the first line. ...
0
votes
0answers
13 views

Add HTML to custom post type edit page

I have searching for adding HTML to a CPT edit page on the admin side. On the internet I see a lot about metaboxes but not about adding your own HTML stuff. Is there somebody who knows more about this?...
0
votes
0answers
11 views

Dynamically created input file rows to add or remove items

I am trying to create a file upload system on the WooCommerce product page, where you can add or remove files before adding the product to the cart. Here's the html: <div id="...
0
votes
1answer
32 views

Hide HTML element (by class or ID) with PHP

In WordPress, is it possible to hide a HTML element by class or ID with php? I've used css rule display: none; but this is easily worked around... I have tried the following via functions.php but to ...
0
votes
0answers
14 views

Why are Elementor HTML Widgets duplicating actions?

I have an Elementor HTML widget on a page that is being used to call a color picker and change the color of some text. Works fine, here's the code: <label for="colorWell">Text Color<...
0
votes
0answers
15 views

Web App on a Wordpress page?

I built a simple Web App using HTML CSS Javascript and a folder with a few images. Is it possible to display the app on a wordpress page? Would it also be possible to embed the app into a blog post? ...
0
votes
0answers
8 views

Landing Page with HTML CSS JS and Images on wordpress

I have a portfolio site using wordpress and the Neve theme. I was wondering if I could add a sample landing page I built using Html CSS js and png images to a wordpress page so someone could easily ...
0
votes
0answers
44 views

I can't go to the page archive-{post_type}.php

Is my custom post type on function.php add_action('init', 'create_objects_type'); function create_objects_type() { register_post_type('objects', array( 'labels' => array( ...
0
votes
1answer
27 views

Remove Keywords From Webpage But Still Use for SEO

We have several pages that have vehicle names that include the new/current vehicle name as a page title and also H1. And the paragraph content mentions what the name of the vehicle used to be called. ...
0
votes
0answers
13 views

Fix HTML errors flagged in W3C Validator

I have put my WordPress website through the W3C HTML Validator at https://validator.w3.org/nu/ and that's lots of errors which I'm keen to fix. However, I can't see any way of editing the HTML code. ...
0
votes
1answer
25 views

Configure WordPress to Use Responsive Image Rendering

We have a website that has custom built page templates. Each page template is fully responsive for mobile view. We ran our site through Google's PageSpeed Insights tool. The biggest problem we see is ...
1
vote
0answers
34 views

Editor not displaying dynamically after clicking on the button

I am displaying the field dynamically in the admin panel. I have a button called Add more fields. The user can add the custom field dynamically. As of now, it's working but the issue is the editor not ...
1
vote
1answer
32 views

How to make a custom field as an editor in wordpress?

I have to add the custom field in the WordPress admin panel and I tried and it's displaying. Below is the screenshot. I am using the below code. function wordpress_add_metaboxes() { add_meta_box( ...
0
votes
1answer
87 views

How to change WooCommerce loop product title HTML output in single product page and archive page

I'm currently working on designing my custom WooCommerce theme and wondering how I could change the HTML output of loop_product_title in single product page and in archive pages. I have less knowledge ...
0
votes
0answers
13 views

How can I embed Wordpress post into my html site?

please help. Yes I can read and google. I have found a few sites also this https://codex.wordpress.org/Integrating_WordPress_with_Your_Website but it does not work. I do not change index.html into ...
0
votes
1answer
17 views

Why can’t I edit HTML in WordPress even with the administrator role?

I am using WordPress. I need to edit the HTML code of the page. Not page.php. When I go to http://example.com/wp-admin/post.php?post=448&action=edit, I see this: And after some time shows this ...
0
votes
1answer
37 views

Wordpress wp-admin redirect and exception

Wordpress website keeps on redirecting to login page after I enter correct login credentials. When I input the wrong credentials, it shows an error stating that the credentials are not correct. So I ...
1
vote
0answers
13 views

how add custom tag/tool in classic editor?

at this moment i dont use new wp block editor still using classic html editor and at this moment were editing lots of articles in foreign language..default WordPress editor is something like this if ...
0
votes
1answer
23 views

specifying relative file paths in WP with jQuery requests not working

Why does it seem that WP requires me to utilize the entire and true file path instead of being able to use a relative file path? I know for safety its better not to use a true file path. In one of my ...
0
votes
0answers
13 views

WordPress prevent form resubmission

I'm working on the code below experimentally. Technically I created a custom page inside a form that changes the description of the site. Here I am processing data with REST API via form. Everything ...
0
votes
0answers
39 views

How to use data URL in WordPress?

First of all, I don't know much about coding. I know HTML, CSS, and PHP, but only a little, just the basics. What I want to do is I want to load my favicon, site logo, and the featured images via HTML....
0
votes
1answer
82 views

Wordpress footer always at the bottom of the screen-page

I'm having a problem in fixing the footer always to the bottom of the page, also when there is not enough content in the page to fill it. I found a lot of similar questions online and all of them ...
0
votes
0answers
22 views

Would HTML document be considered a block if using Gutenberg Editor?

If Gutenberg Editor was in use, would the whole HTML document be considered a block, which would be made of other blocks?
1
vote
0answers
25 views

Creating custom HTML pages

I want to be able to create pages with just my own HTML, CSS, JS and PHP. Can this be done with plugins to still work correctly within the page? Example: importing a WPform with a shortcode like [...
0
votes
0answers
32 views

Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs

Going from twentysixteen to twentytwenty theme has disrupted formatting. As I understand WP2020 introduces p-tags within em- and strong- tags that are not closed. It looks like screenshot one. The ...
0
votes
1answer
22 views

How do I change the color of individual page titles in WordPress?

I am looking for custom CSS to add to my WordPress website to change the color of individual page titles. Does anyone know how to do this?
0
votes
0answers
11 views

Boilerplate - Run js function onClick button

I am using the boilerplate generator for first time and I have a problem. On my edit post page, I have created a custom button like this: admin/admin-class-myPlugin-admin.php public function ...
-1
votes
1answer
173 views

Parse error: syntax error, unexpected 'echo' (T_ECHO) in C:\xampp\htdocs\AttendanceSystem\resources\php\method.php on line 250 [closed]

How to echo php variable in html that in String $body = '<p style="font-size: 18px; line-height: 1.2; text-align:; word-break: break-word; mso-line-height-alt: 22px; margin: 0;"><...
0
votes
0answers
30 views

Get html from custom route api

I created a custom route with the wordpress API which allows me to retrieve the html content of the post When editing a post, I added an "Export to html" link with the download attribute ...
0
votes
1answer
16 views

HTML comment cause issue in functions.php script root

I noticed HTML comment tag <!-- --> will cause issue on themes functions.php script if it is in the root of script(not inside a function). I was working on my themes functions.php to add some ...
0
votes
0answers
9 views

email validation for new user registration

Every new registration needs to validate the email to get access to user login. The website was asking only for the email and was sending one email to the user to put his own password. In the ...
0
votes
2answers
21 views

Where do I have to put an image in order to use in a Custom HTML img?

I am trying to use custom HTML in a widget and I can't make an img tag to work because I have no idea where to store the image. Where does one store an image inside a WordPress website ? And not by &...
0
votes
1answer
20 views

dynamic php menu with hidden sub-categories only showing when the category name is clicked

This is for a wordpress store and I want to show the categories names automatically, but with the sub-categories hidden, the code below works perfectly with the hover effect, now I wish to have the ...
0
votes
0answers
20 views

Download html file post content

I want to do this on my website : add a button on edit.php page (I succeeded) when I click on this button, I want to get the html's post and download it as html file I know how to get the html ...
1
vote
1answer
15 views

How Display Posts on category

I had a problem, I converted an html template to wordpress, now I want a section Category Enable to display content using categories Does anyone know the solution and code? iam use a code and not work ...
0
votes
0answers
10 views

How to display HTML in frontend for widget development?

I'm still new to PHP and WordPress, I have HTML I want to display with someone puts in this widget but I'm not sure why it is not displaying. I know I'm doing something or a lot of things wrong. Am I ...
0
votes
1answer
16 views

Tidy HTML formatting in Gutenberg HTML blocks

When forming my own HTML within Gutenberg HTML blocks, trying to keep my HTML tidy for easy debugging purposes is a pain because tab indenting cannot be used, and therefore multiples of 4 spaces or ...
0
votes
2answers
24 views

Replace only the first CSS class

I'm trying to replace the "thumb-w" CSS class with "thumb-w1", just the first time. This is the starting function: function start_modify_html() { ob_start(); } function ...
0
votes
0answers
5 views

How to use html or content block (a countdown timer) for a featured image for a specific post

I have the timer in a content block. Is there a way to add the content block as the featured image? Or just the html somehow? There is a thread on similiar situation in Aug answered by Nate Allen-...
0
votes
0answers
9 views

Slug duplicates once clicking on link

I'm using polylang plugin. I have the current URL http://localhost/wordpress/en/ in my browser, I have another URL that suppose to change language to Hebrew http://localhost/wordpress/he/. <a href=...
0
votes
0answers
14 views

couldnt show short code atts in category

i add this shortcode in function : function sub_about_movie( $atts , $content = null ) { $b = shortcode_atts( array( 'name' => '', 'time' => '۹۲ دقیقه', 'language' =>...
0
votes
0answers
15 views

Unable to embed wordpress blog to other website

What I am basically trying to do is embed a blog website on the main website as iframe. I am the one who is responsible for the blog website which is running on Wordpress. The main website is being ...
0
votes
0answers
9 views

Display two items from a custom post type that have 2 different taxonomy terms but output different HTML in the loop for one of those terms

sorry if my question title does not make much sense, I couldn't think of a good way of wording it. Essentially, I currently have some custom loop code on single.php that does the following: If a ...
0
votes
1answer
20 views

Add Link to PHP message

This feels like a noob question and I can't find references out there on how to do it. But I am adding a custom message the the default WP Login Page. I want to add a hyperlink (to a support page on ...

1
2 3 4 5
22