Error while loading wordpress site "Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home

I am facing fatal error while loading wordpress site. Error is: Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in ......(here in the middle shows some links).... and at the end it shows in bold public_html/wp-content/themes/twentytwentyone/header.php on line 16 There has been a critical error on this website. I am not experience in wordpress. I need to resolve this error. here is my site URL https://ijazmedia.com/ I have tried to add below code in header.php file but it did …
Category: Web

How to change page title (from a plugin) in twentytwentyone theme

First, is it even possible to change the page title from a plugin (specifically, from a shortcode defined in a plugin)? This answer says no, but there are certainly reasonable use cases for it. Like, say, my use case (the shortcode displays detail page content for an item of a collection ... so, I put the shortcode on a page; what's the page title supposed to be? It depends on the detail item.). I have tried every method I can …
Category: Web

Replace custom SVG icons in Twenty Twenty-One

I was trying to investigate how to replace some icons of the parent theme with the child theme but I was not able to do it. I am trying to replace the SVG icons that are in the twentytwentyone\classes\class-twenty-twenty-one-svg-icons.php file, specifically the Menu and Close icons. In my child theme I created the classes folder and copied the same svg icons file, but when I try to call it in my child theme functions.php, it doesn't work, I'm probably using …
Category: Web

Trying to add a custom social icon to a Twenty Twenty-One child theme

I am trying to add an icon to the Twenty Twenty-One social icons, but having trouble registering it. This support article refers to a Themes field guide for WordPress 5.5 which gives instructions on how to add a custom icon and hook it in so that it appears when the relevant url is typed in as a menu item custom link. I copied the function from the Field Guide, changing the hook to match 2021 theme rather than 2020 (since …
Category: Web

How do I convert this code to dynamic WordPress navbar without losing the CSS styles?

Here is the sample HTML code: <ul> <li><a href="#">Home </a></li> <li class="menu-dropdown"><a href="#">Supplies <i class="ion-ios-arrow-down"></i></a> <ul class="sub-menu"> <li><a href="#">Chemicals</a></li> <li><a href="#">Food</a></li> <li><a href="#">Apex</a></li> </ul> </li> <li class="menu-dropdown"><a href="#">More <i class="ion-ios-arrow-down"></i></a> <ul class="sub-menu"> <li class="menu-dropdown position-static"><a href="#">Supplies <i class="ion-ios-arrow-down"></i></a> <ul class="sub-menu sub-menu-2"> <li><a href="#">All</a></li> <li><a href="#">Chemicals</a></li> <li><a href="#">Food</a></li> <li><a href="#">Apex</a></li> </ul> </li> <li><a href="#">About Us</a> </li> <li><a href="#">Blogs </a></li> <li><a href="#">Contact Us </a></li> </ul> </li> </ul>
Category: Web

Add Different Class on Different Ul in twenty-twentyone theme

I'm creating a custom menu with wp_nav_menu. I want to add different classes on menu and submenu which are coming under different li, but unable to find a solution. Can anyone help me to figure out this question. I am sharing the HTML part which I am trying to convert for making menu dynamic. <ul> <li><a href="#">Home </a></li> <li class="menu-dropdown"><a href="#">Supplies <i class="ion-ios-arrow-down"></i></a> <ul class="sub-menu"> <li><a href="#">Chemicals</a></li> <li><a href="#">Food</a></li> </ul> </li> <li class="menu-dropdown"><a href="#">More <i class="ion-ios-arrow-down"></i></a> <ul class="sub-menu"> <li class="menu-dropdown …
Category: Web

twenty twenty one / background values

have checked my source code of my wordpress site/theme using https://validator.w3.org/ because I have installed the new theme twenty twenty one and now the sites stalls on my iphone with an animation I used before. tools says: background: repeating-conic-gradient(from 0deg,rgb(236, 236, 236, 0.9) 0deg 1deg,transparent 1deg 2deg) is an ERROR and is not a background-color value? I can find quiet many examples in the web that say it should be that way? any advice? regards, A
Category: Web

Why does theme's reset CSS have higher precedence of plugin's CSS?

In the style.css of the theme Twenty Twenty-One, there is a piece of reset CSS: /** * Reset specific elements to make them easier to style in other contexts. */ html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, form, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 { padding: 0; margin: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } Why does it have higher precedence than the CSS in my custom plugin? The result is …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.