Questions tagged [html]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

#038 & wordpress Help

Please help me edit the code so that wordpress does not change the & symbol to #038 when I publish links on my site function esc_url( $url, $protocols = null, $_context = 'display' ) { $...
James's user avatar
  • 1
0 votes
1 answer
19 views

How to change css poperty through webhook in wordpress

Here is the code that I have wrriten in the snipnet plugin and it is return parse error when i am returning data. // JavaScript function to toggle button visibility function showTheButton($...
Shahryar Rafique's user avatar
0 votes
0 answers
11 views

Is there a simple way to convert an HTML newsletter into a WP blog post?

I've been tasked with something that I suspect is not easily possible (keyword: easily). I manage a WP-based news website and we also send a monthly newsletter using MailerLite. Each newsletter issue ...
Trisha's user avatar
  • 418
0 votes
2 answers
32 views

window.location.href doesnt' work to redirect page

I am trying to add a custom HTML block to the page with the below code. I created a Drop-down List and a search button for redirecting pages. But it seems like that window.location.href doesn't work ...
Leanne's user avatar
  • 1
0 votes
0 answers
9 views

Inserting link into text creates unnecessary indentation

I'm trying to insert a link into my text on Wordpress via Elementor, but it is creating a new line after the linked word. How do I get it to run consecutively on one line? When creating it in ...
Lexi's user avatar
  • 1
0 votes
1 answer
23 views

Why does my JavaScript work in the browser console but does not work in my shortcode?

I am trying to create a shortcode the user can just insert which creates a button that loops through an array and displays it or hides it. On page load I want every item with an index >= 1 to have ...
rnkwill's user avatar
1 vote
0 answers
45 views

Extracting and Replacing HTML Post content with PHP DOM

I'm working on updating/replacing certain data in WordPress blog posts(1000+) from 2 categories from which I need to extract specific HTML content from two p tags and replace one of the p tags with ...
Bork's user avatar
  • 11
0 votes
0 answers
16 views

Header menu permanently expanded in header responsive theme

It's been a long time since I have played around with the WordPress admin and style/theme and have discovered my sites header menu is permanently expanded, showing all the submenus. I am using the ...
user36867's user avatar
1 vote
1 answer
55 views

How to use Javascript to get data from a Wordpress form

I'm building a booking form using WS Form in Wordpress. Because of the several calculations and conditions accuring when selecting the number of people partecipating in the booking, the form is crazy ...
Paolo Montalto's user avatar
0 votes
0 answers
17 views

Editing stylehseet url in head section of WordPress

In our website, in the <head> section there is a call to a stylesheet and the URL is unsecured (HTTP). I would like to edit this to be https, but I'm not sure what file to edit to achieve this. ...
Ecigs Can's user avatar
0 votes
0 answers
27 views

How can I change text on my SearchWP search results page, as this is not an editable page in Wordpress?

I just want to change the text "Search results for:" to something else e.g. "All results for:" The class is .page-title. I can't find this anywhere and I cant edit the page html as ...
Joseph Lewis's user avatar
0 votes
2 answers
29 views

Processing javascript on wordpress

I'm working on this project where I want to add some html on my wordpress website. The point is to add a "read more" button. Here's the code: <p>some text<span id="dots"&...
PJaze's user avatar
  • 1
0 votes
1 answer
38 views

Email notification when registred user clicks a link/visits page

Wordpress- I need to get an email which signed up user visited/clicked on link/button/or visited specific page. Email needs to tell me at least their username, or something from sign up form from User ...
Andrej Chalas's user avatar
0 votes
0 answers
16 views

Wordpress is ruining links to user profiles...?

I run a website that deals in reviews and as part of my SEO process I add a link to every authors archive of articles at the bottom of each new piece. Recently this has broken. When visiting it is ...
Rob Simpson's user avatar
0 votes
1 answer
37 views

How can I show wp blog post in html site?

I have a website that is built with HTML and Bootstrap and have a blog with WordPress (here is the link https://satisfyhost.com/blog/. Now I want to show my blog posts last 3 or 4 on my main website. ...
Tasnim's user avatar
  • 1
0 votes
1 answer
90 views

How can I retrieve the original content in a page via REST API, content that I pushed myself also via API?

I pushed some content in pure plain-text into a wordpress via the REST API. Say I push this page content: Hello. Bye. Then when I retrieve it, instead of this original content I find a property ...
Xavi Montero's user avatar
1 vote
1 answer
22 views

Get variable from url

I'm having trouble getting a variable from a url. I tried the following 2 urls: http://intranet/generalinfo/campusdirectory/index.php/personnel?page=1 http://intranet/generalinfo/campusdirectory/?page=...
Darth Mikey D's user avatar
0 votes
0 answers
30 views

How to add input field value to Users in Wordpress Dashboard

I've got a request where the client would like to store provided emails in the WordPress Dashboard so they can access them for marketing. I've added an email input field like so: <div class="...
Simon Lowe's user avatar
0 votes
0 answers
18 views

Is It Possible to Block Redirect Checker Tools from Knowing Where URLs are Redirected?

I want to block URL Redirect Chain Checker tools such as wheregoes(.)com. Is it possible to do it? For example: wheregoes com/trace/20234194180/ this url can easily tell people where my affiliate link ...
Stephen Hawk's user avatar
0 votes
0 answers
12 views

Update HTML text automatically from file

I run a Wordpress website for a restaurant, where I manually get to update some of the text (the week's menu) which I receive from the chef by mail in a Word file every monday morning. I have been ...
Bob's user avatar
  • 1
0 votes
0 answers
10 views

Not sure why inspecting element on windows is different that what im seeing on mobile?

I just started learning Html/CSS two months ago and im having a really hard time trying to make my projects responsive. When im viewing the project on my mobile phone it looks how i want it to look, ...
Jesse's user avatar
  • 1
0 votes
0 answers
14 views

Identify and style the paragraph beginning w/o a class: based on a combination of common characters (CSS, JS)

There are html-constructions: <p>— Some random text.</p>. Without class. According to the specified attribute "dash, space, some random text.", I need to catch this condition and ...
milcheloveck's user avatar
0 votes
0 answers
63 views

separating column the variations from the add to cart button woocommerce

I'm using the "Worldmart" theme and I'm trying to separate the variations of the "Add to Cart" button. I'd like to have the variations displayed in column 1 and the "Add to ...
Eduardo's user avatar
0 votes
1 answer
35 views

Giving each loop post unique numbers so that Wordpress would treat separately

So I got this code right now. The problem I get is that it executes only for the first video. I know I need to give each loop post a unique number in order for WordPress to treat them separately. Same ...
RaymondM's user avatar
0 votes
1 answer
35 views

How can we upload custom page files?

By making our own .html, .css and .js pages, how can we upload them in WordPress directory correctly? And then, how can we insert, for example, our Elementor's header (which is being used in all ...
Maria's user avatar
  • 3
0 votes
1 answer
362 views

Favicon not showing in Google search results

My website's favicon is not showing up in Google's search results. I have tried several things without success, but I think I understand what goes wrong now. On the Wordpress dashboard, I clicked into ...
Juan's user avatar
  • 1
0 votes
1 answer
31 views

How to show correct td of table tags in wp_query loop

I Have this loop: <?php $post_ids_fetched = array(347, 258); $editor = new WP_Query( array( 'posts_per_page'=>4, 'post_type'=> 'earth', 'post__in' =&...
och's user avatar
  • 39
0 votes
0 answers
53 views

HTML content to align vertical and convbert to PDF

I am requireing PHP library of HTML to PDF, which supports external JS/CSS. What I excatly needed is HTML to PDF content with vertical align with auto page break. In Vertical align should support ...
Yagnesh's user avatar
0 votes
0 answers
27 views

Strange issue where <p> tags are not visible in the HTML (trying to problem solve this)

Odd situation here...if I look at a Blog Post I see that there are no paragraph tags in the code (when looked at from the View Source Code) in the browser. However, when I go to the post as an admin, ...
Henry's user avatar
  • 983
0 votes
0 answers
175 views

hamburger menu is not showing in mobile view

I run a website using WordPress. The hello elementor theme was utilised. My header desktop view header menu is displaying appropriately, which is my concern.but the hamburger menu in mobile view does ...
Thoubik's user avatar
0 votes
0 answers
64 views

How to remove h3 tag from the reply-title

I would like to remove the h3 tag on "reply-title" I tried the following code : ob_start(); } add_action( 'comment_form_before', 'my_comment_form_before' ); function ...
Olivier Pallme's user avatar
0 votes
1 answer
32 views

Extra HTML code added to my <table> (on Chrome DevTools) but not on source code

As I'm working on a <table> displayed on a page (still in Draft) on WordPress, something weird happened : While I've written this very simple code on my editor : <table> <tr scope=&...
PhpDoe's user avatar
  • 197
0 votes
1 answer
35 views

Elementor Contact Form Submit button has empty class

I have a contact form here: https://www.vztplzen.cz/kontaktni-formular/ It is built using Elementor’s Contact Form widget. The submit button has empty class: <button type="submit" name=&...
Petr Břeň's user avatar
0 votes
1 answer
871 views

How to modify default <meta> tags in wp_head()

I am looking to do some on-page SEO, wherein I want to limit the length of Title, Description, and more in my HTML meta tags. Is there anyway I can access metatags already present in wp_head, and ...
Amit Bajar's user avatar
0 votes
2 answers
2k views

Virus injected to my wordpress site

Recently my wordpress site has been injected with some sort of virus, and all the other non-wordpress sites too have been affected. Mainly in every folder either a .php, .txt and .htaccess is created ...
Nikhil k's user avatar
0 votes
0 answers
33 views

meta refresh html tag accessibility error

I'm running accessibility tests on my site with mauve wcag2.1 AAA and am getting this error: SC 3.2.5 - Tech H76 [WCAG 2.1 (AAA)]Using meta refresh to create an instant client-side redirect reference ...
LesCa's user avatar
  • 21
0 votes
0 answers
73 views

How to create different templates for woocommerce single-product.php?

I am learning Wordpress development. I have 3 products that I want to add to my woocommerce store. By default woocommerce store comes with a basic template for all products. But I want to make every ...
Frankie's user avatar
  • 11
0 votes
0 answers
338 views

IOS Ventura Safari 16.3 position fixed elements goes above scroll bar

IOS Ventura Safari 16.3 whenever I create a position fixed element with 100% width, It goes above or bellow the scroll bar as well. this is easy to recreate. .anyelement { position: fixed; height:...
Tharaka Nuwan's user avatar
0 votes
1 answer
33 views

How can we get Buddypress to interpret HTML entities correctly?

Buddypress messages - specifically the preview page - does not interpret HTML entities correctly. Instead, they display as literal strings. Does anybody know how to get Buddypress to recognize and ...
uranoz's user avatar
  • 1
0 votes
1 answer
17 views

Posts Page in WordPress loading bare HTML of my homepage

On my WordPress site, I have an HTML page template serving as the home page and the posts page is a generic WP posts page. However, whichever page I set as the Posts Page in the Reading section of WP ...
Harsha Baskaran's user avatar
0 votes
0 answers
62 views

How do I load a HTML page as WordPress Homepage without adding it in the 'Pages' section

So I understand that it is possible to load a HTML page on WordPress by adding a folder with the HTML, CSS and js in the root directory. However, the HTML page only loads on domain.com/foldername, if ...
Harsha Baskaran's user avatar
0 votes
0 answers
25 views

Minify HTML on specific page

im trying to (at first) use PHPWEE's HtmlMin.php minifier to minify the html of a specific page and output it to browser. bellows my code; function minify_html_output(){ // Get page html $page = ...
user21300793's user avatar
0 votes
1 answer
206 views

Saving meta box data from selected option's value in database is not working

I have added a organizer input filed using "select and option" tag, screenshot - https://prnt.sc/DtiJr5W178_g Here is my full code - // Callback function for Metabox <?php function ...
Moon Akondo's user avatar
0 votes
0 answers
562 views

Word press - JSPDF - Sending PDF as attachment from wp_mail - Special characters

This is my very first post. Thanks to all your answers on other posts. Am using JSPDF to send an attachment through AJAX call to PHP server- A mail is sent from here with the generated PDF as ...
Sam's user avatar
  • 1
0 votes
1 answer
121 views

Editing size of h3 tag in wordpress on a one-off basis

I have a post on my WordPress site (I'm admin) that has H1, H2, and H3 tags. I want my H3 tags for this post to more resemble my h4 tags in size. However, I don't want to break the hierarchy and just ...
Melanie Shebel's user avatar
0 votes
2 answers
368 views

Font Awesome Icons as squares [closed]

I have been trying to migrate my html css and javascript static website to a wordpress dynamic theme. Everything worked fine and looks perfect but for some reason my font awesome icons appear as ...
Anas Dah's user avatar
0 votes
2 answers
30 views

How to link and display an "example.php"?

I have created an example.php: <?php get_header(); get_template_part('template-parts/banner','title'); ?> <div class="container"> <p>HERE GOES THE TEXT</p>...
Hubert Kubasiewicz's user avatar
0 votes
0 answers
96 views

Use Base-URL with Query-Loop

I've set the Base-URL for my WordPress page with <base href="https://www.example.com/" /> function custom_header_metadata() { ?> <base href="<?php echo ...
Marzii's user avatar
  • 23
0 votes
1 answer
35 views

Modal pop-up HTML code works on other sites or HTML viewers but not in the custom HTML block within a wordpress page?

I'm not the best at coding, but I've managed to create this html code of a modal pop-up which includes CSS, Javascript, and html... it works in an html viewer or anywhere else except the wordpress ...
spencerm269's user avatar
1 vote
1 answer
30 views

Limit total tags in the_content

I am using the_content to display content in a custom theme, but I am running into an issue. Right now, I have some JS code that removes the <br> tags and replaces them with </p><p> ...
Josh Rodgers's user avatar
  • 1,173

1
2 3 4 5
25