Restrict CSS on one page
You are using body_class() in your template already, so your home page has a class home on the body element. Restrict the margin rule in your stylesheet by using that class: .home #secondary { margin-top: 20px; }
You are using body_class() in your template already, so your home page has a class home on the body element. Restrict the margin rule in your stylesheet by using that class: .home #secondary { margin-top: 20px; }
Without being rude, it will probably cost more to fix what you break instead of asking them in the first place! – however, you can’t learn until you break!. If I were you and you are interested in trying to play around with CSS/HTML – then you could always install WordPress locally on your Mac/PC, … Read more
That clutter is part of the default content added with WordPress and theme installed. You can remove it through the Admin Dashboard UI: Since you are using the Argent theme by Automattic, you need to go to Appearance -> Widgets -> Footer Widget Section and drag all the unnecessary widgets out from it.
Just save your permalinks. And the problem should be resolved. Go to : Settings > Permalinks > Click ‘Save Changes’
All your links at your page point to moneytree as the root domain. For example you have http://moneytree/?page_id=2 instead of http://www.xmoneytree.com/?page_id=2 None of your assets (JS, CSS) are being loaded for the same reason: When you installed WordPress you probably did not specify the correct value for your domain. You can do that either by … Read more
That’s because you are creating a card group in each iteration of the loop. You should move the <div class=”card-group” > div out of the loop.
Your mathjax script tag isn’t closed properly: <script type=”text/javascript” id=”MathJax-script” async src=”https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js”> </head> <body … > This means that the </head>, and the <body> and all of your page content is treated as text inside the <script> tag until you hit the </script> from your document.body.classList.remove(“no-js”);, and lost. (If you view page source in your … Read more
you could move the loop content into its own file and share that between the different template files using get_template_part()
You can use CSS attribute selectors to accomplish this without changing anything in the WP Admin or the HTML. A Google search for “css file type icons” comes up with several results, but I’ll explain the basic idea for you here. An attribute selector lets you style any html tag with a matching attribute. There … Read more
There is a filter called theme_page_templates which you can use to force the use of a certain template under certain circumstances. Like this: add_filter (‘theme_page_templates’, ‘wpse263827_filter_theme_page_templates’, 20, 3 ); wpse263827_filter_theme_page_templates ($page_templates, $this, $post) { if (condition based on $post) $page_templates=”path-to-template.php”; return $page_templates; } So, you can place the template file wherever you want and assign … Read more