pichichi
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Shortcode insertHello, I think you are very close, in?page.php try replacing your code with:
echo do_shortcode('[headertext]');
Forum: Requests and Feedback
In reply to: Help me with my header/navbarLooks like “How i want it to Look” for me.
Did you get it sorted? If not, what device are you seeing the big gap?
Hi!
To get rid of that advisory from Google, you just need to set an explicit height and width for each affected image. For example, for the first image the HTML is currently output like this in my browser:
<figure style="text-align: center;"> <img decoding="async" src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg" alt="Thuê xe máy Hà N?i" data-lazy-src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg?is-pending-load=1" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class=" jetpack-lazy-image"><noscript><img data-lazy-fallback="1" decoding="async" src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg" alt="Thuê xe máy Hà N?i" /></noscript> <figcaption>B?ng Giá Cho Thuê Xe Máy Tham Kh?o</figcaption> </figure>
All you need to do is ensure a height and width (in pixels), is passed along, so for your first image, this would become:
<figure style="text-align: center;"> <img decoding="async" src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg" width="600" height="400" alt="Thuê xe máy Hà N?i" data-lazy-src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg?is-pending-load=1" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class=" jetpack-lazy-image"><noscript><img data-lazy-fallback="1" decoding="async" src="https://motoopen.com/wp-content/uploads/2023/04/Cho-thue-xe-may-Ha-Noi.jpg" alt="Thuê xe máy Hà N?i" /></noscript> <figcaption>B?ng Giá Cho Thuê Xe Máy Tham Kh?o</figcaption> </figure>
This can seem weird in 2023, when we all set height and widths by other methods, but that’s the way Google likes it and it also helps browser rendering as it reserves a space for the image while the page is loading, and also ensures the image displays at the correct aspect ratio.
Forum: Developing with WordPress
In reply to: Footer menu Olsen Pro not centeredHey,
Best place to ask is the forum for your theme, there could well be some settings you can update without touching code. The forum is here: https://www.ads-software.com/support/theme/olsen-light/
However, you can add this code to your custom CSS to get the desired result, but it would be best to do it through any options your Theme gives you.
CSS:
.site-bar { display: flex; flex-direction: column; } #footer .nav { text-align: center; } .site-bar .nav { width: 100%; } .site-tools { width: unset; }
Forum: Fixing WordPress
In reply to: Change subscription size box*Sorry, did not see the reply above*
Best place to find out how to do this with your commercial theme is via their support, which seems to be: https://www.pipdig.co/shop/wordpress-theme-crystal/, as there might be a way to do this in your theme’s settings.
However, you can add the following code to your custom CSS to change the size of the text, which in this case, will change the size of your button. If you want to make the text bigger or smaller, just change the number 16 in the example to something else. The current size on your site is 20.
#mc4wp-form-1 input[type=submit]{ font-size:16px; }
Forum: Fixing WordPress
In reply to: How to edit the HTML of a theme?Here’s the forum for the Storefront theme, this would be the place most likely to be familiar with your set up: https://www.ads-software.com/support/theme/storefront/
Forum: Fixing WordPress
In reply to: There has been a critical error on this website.Yes sir. Understood sir.
Can I humbly suggest to the commander that they consider that for someone that explicitly asked for “layman terms”, a single challenging technical step of changing the admin email might provide access to the WordPress dashboard, could provide a much more user friendly way to disable plugins and troubleshoot than expecting them to be able to understand error logs, edit core files and renaming folders on a server?
So to the OP, you have a few options. If you manage to change your email and get access that way you can then start to troubleshoot through your dashboard. Here is a user firendly guide: https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/
Forum: Fixing WordPress
In reply to: There has been a critical error on this website.Of course an admin email address is not causing a critical error but if email is not one of the OPs problems then what else could “i cannot access the email linked to this account anymore” mean? Have I munsunderstood something?
Forum: Fixing WordPress
In reply to: There has been a critical error on this website.If you can’t access the email the only way in is to change the email address. In your situation, the only way to do this is by editing the wordpress database. If you are uncomfortable doing this it is best to contact your web host. If you want to do it yourself see step three here: https://www.wpbeginner.com/beginners-guide/how-to-change-the-wordpress-admin-email/
Please backup your site before editing the database as it can seriously break your site
Forum: Fixing WordPress
In reply to: Help with “Follow” ButtonI’m not sure what the issue is sorry, it looks like you followed dthe instuctions for external sites here: https://wordpress.com/support/follow-button/
I would suggest asking for help in the Jetpack forum as someone may have had a similar experience https://www.ads-software.com/support/plugin/jetpack/
Forum: Fixing WordPress
In reply to: Urls not present on the site are getting created automaticallyYou are welcome!
Forum: Fixing WordPress
In reply to: Help with “Follow” ButtonI can see your button, top right of the sidebar. Try viewing your page in a private browsing mode like incognito, or clearing your browser history.
Forum: Fixing WordPress
In reply to: Urls not present on the site are getting created automaticallyURLs do not need to exist on your site to be reported in search console, it is common to find unknown URLs and not always a cause for concern, some examples:
- Someone has linked to a non existent pages by mistake or making typos – remove the urls with the removal tool
- You have errors in your sitemap – check the sitemap
- The bots that crawled your site made an error – remove the urls with the removal tool
- Some bad dudes are trying to harm your ranking by creating lots of links to no-existent pages which make Google think you have broken links. Check the referring sites and if you are 100% positive this is the case you can disavow these links – but please only do this after lots of research, it can really harm your ranking if done wrong. Link: https://support.google.com/webmasters/answer/2648487?hl=en
Forum: Everything else WordPress
In reply to: 404 Monitoring Hits on my brand new Website (beginner)Hi, every website is a target for hackers and a lot of these 404 errors are probably automated scripts scanning websites for specific files that are known to have vulnerabilities, or files that can let them know what your setup is.
Make sure your WordPress is secure by following best practices (there are lots of guides for this on external websites) and keep your core files and your plugins up to date and you should be fine. It’s useful to follow the WordPress security bulletins and If you notice a lot of this traffic comes from specific countries or IP addresses you can block that with a firewall.
The homepage is the only strange one, is it definatly your homepage or does the URL contain other characters?
Forum: Networking WordPress
In reply to: Rusty on my php need help with switch_to_blogIt looks like your code it being interpreted as plain text, I would try:
- Check for syntax errors
- Check there were no issues with pasting code such as hidden characters, apostrophes, brackets
- Check the file you are working in is definatly a PHP file (I had assumed you were because you mentioned PHP).
If you are not using PHP and want a front end solution, you can paste this JS snippet in a regular WP code block. You can use the documentation to modify:
<script> const category_id = 6; // set the category ID const url = 'https://sisterSite.com/wp-json/wp/v2/posts?categories=' + category_id + '&per_page=10'; fetch(url) .then(response => response.json()) .then(data => { if (data.length > 0) { const titles = data.map(post => post.title.rendered); const titleList = document.createElement('ul'); titles.forEach(title => { const listItem = document.createElement('li'); listItem.innerText = title; titleList.appendChild(listItem); }); document.body.appendChild(titleList); } else { console.log('Error retrieving posts'); } }) .catch(error => console.log(error)); </script>