Questions tagged [theme-twenty-twenty-one]
The theme-twenty-twenty-one tag has no usage guidance.
14
questions
0
votes
0
answers
16
views
Move custom sidebar out of <main> in Twenty Twenty-One child theme
In the child theme, I registered a widget area for a sidebar that I only want to show on single posts.
In my single.php, in between the endwhile; and get_footer();, I added:
echo '<aside id="...
0
votes
0
answers
178
views
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)...
0
votes
1
answer
33
views
How to copy page/post from one theme to another?
I was using default wordpress 2022 theme and created few post & page templates from Appearance -> Editor -> Templates. These templates are lost when I switched to a child theme. Is it ...
0
votes
1
answer
160
views
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\...
0
votes
1
answer
57
views
How do I override template-tags.php in 2021 theme
I've created a child theme and I want to overwrite functions in inc/template-tags.php file. I thought if I copy this file and recreate folder structure in my child them then it will work but it doesn'...
0
votes
1
answer
89
views
how to add dynamic text before and after of post title
In twenty twenty one theme how to add dynamic text before and after of post title. I want to add “Premium” word before title and “today” word after the title. Please help me
0
votes
0
answers
29
views
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 ...
0
votes
1
answer
490
views
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 ...
0
votes
1
answer
83
views
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 ...
1
vote
2
answers
177
views
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, ...
1
vote
3
answers
156
views
Remove Site Logo from Homepage in Twenty Twentyone
I am looking for a way not to show the site logo in my homepage (but on all other pages). I can manage to do this only in the nasty way, using css and display none - however, I would like to avoid ...
0
votes
1
answer
51
views
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 ...
0
votes
0
answers
92
views
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,...
0
votes
0
answers
127
views
Completely remove SVG icon load in child theme of Twenty Twenty-one theme
How to Completely remove SVG icon load in child theme of the Twenty Twenty-one theme?