Rolf

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 127 total)
  • Author
    Posts
  • in reply to: Fatal error to install XML Sitemap plugin #17844
    Rolf
    Keymaster

    Or, if you are not afraid of modifying PHP files, you can try this:

    1. Go to Plugins > Plugin Editor and select XML Sitemap & Google News on the top right.
    2. Open >models in files list on the right en choose the file functions.public-shared.php
    3. There you will see the first function:

    
    function xmlsf_headers( $headers ) {
    	// set noindex
    	$headers['X-Robots-Tag'] = 'noindex, follow';
    	$headers['Content-Type'] = 'text/xml; charset=' . get_bloginfo('charset');
    	return $headers;
    }
    

    Now add a new line right after function xmlsf_headers( $headers ) { and enter $headers['Status'] = '200'; there. It should look like:

    
    function xmlsf_headers( $headers ) {
    	$headers['Status'] = '200';
    	// set noindex
    	$headers['X-Robots-Tag'] = 'noindex, follow';
    	$headers['Content-Type'] = 'text/xml; charset=' . get_bloginfo('charset');
    	return $headers;
    }
    

    Then click the button Update File at the bottom.

    Let me know and I’ll check the response status of your sitemaps again 🙂

    in reply to: Fatal error to install XML Sitemap plugin #17843
    Rolf
    Keymaster

    It all looks correct. Only the response status 404 is wrong. I’ve only seen this happen on older WordPress versions without any posts published but that is certainly not the case here.

    I wonder if it’s a conflict with another plugin.

    Any chance you could create a temporary admin account so I can take a look on the back end? You can send me the details via the contact form or a private message (link “send a message” under my icon on the left here).

    in reply to: Fatal error to install XML Sitemap plugin #17834
    Rolf
    Keymaster

    Hi Eduardo, I checked your yearly post sitemaps a few times. They are really slow and I even saw the 5OO internal server error once.

    Make sure you keep your option ‘Split by’ on ‘Month’. Your monthly sitemaps load fast enough and all are correct.

    However, even though the response is correct, the status code that is returned by the server is 4O4 which means “not found”. I suspect Google sees this as a problem (and it is!) so it will not treat the sitemaps further.

    Do you have any idea why your server or WordPress itself would return a 404 status code for posts or feeds?

    in reply to: Fatal error to install XML Sitemap plugin #17785
    Rolf
    Keymaster

    Or… you can set the option Split by to Month which will make the sitemaps smaller and faster to index. 🙂

    in reply to: Fatal error to install XML Sitemap plugin #17784
    Rolf
    Keymaster

    Hi Eduardo, I’ve entered both your sitemap.xml and your sitemap-posttype-post.2019.xml in the online validator tool https://www.xml-sitemaps.com/validate-xml-sitemap.html and both are valid.

    Maybe the error is an old one and will disappear after a while. Or you can try removing the sitemap from your Search Console and then submit it again. Hopefully the spider will re-validate it then.

    in reply to: Fatal error to install XML Sitemap plugin #17746
    Rolf
    Keymaster

    If you set “Split by: Month” you will have less posts per sitemap. On option to split by “Number” is planned for a future version but not ready yet…

    in reply to: Fatal error to install XML Sitemap plugin #17741
    Rolf
    Keymaster

    So you have only the XML Sitemap & Google News plugin activated now? And can you switch to Month or Year or does that still cause a problem?

    in reply to: Fatal error to install XML Sitemap plugin #17689
    Rolf
    Keymaster

    When changing to Year or Month is when it causes problems. It does not group the links by year or month. You have consumed all the resources of the web server.

    That is very strange… Is there any chance I can take a look on the admin side? If you create a temporary admin account and send me the details via https://premium.status301.com/contact/ ?

    Or do you see any related errors in the server error log?

    in reply to: Fatal error to install XML Sitemap plugin #17680
    Rolf
    Keymaster

    From this topic title I understand that the error occurs during plugin installation. Is that the case? Is that the Google News Advanced extension plugin or the main XML Sitemap & Google News plugin? And is that when installing or when activating?

    in reply to: Fatal error to install XML Sitemap plugin #17676
    Rolf
    Keymaster

    Hi Eduardo, I responded to your email about half an hour ago. Maybe it landed in the spam folder?

    My question is: where does the error occur? On a post sitemap? In your mail there was a screen shot of memory errors, so it might help to set the “Split by” option to “Month” on Settings > XML Sitemap…

    Rolf
    Keymaster

    To get the popup to show on the top left will take more that some custom CSS or alternative image. The script was designed to seek the center so our only option would be to make the popup as large as possible and then have the form align top left of its content.

    Go to Settings > Media and find the section Window. There, under Dimensions, set both “Width” and “Height” to 100% and test your popup again…

    Rolf
    Keymaster

    Hi Bianca, to change the background transparency, there is the field Opacity in the Overlay section on Settings > Media. Give it a value 1 to completely remove any transparency.

    Changing the close button appearance will be more difficult. We have an experimental plugin available that replaces the standard close button but it will look different to what you want. You’d have to create your own alternative button image to replace the one in that plugin.

    Or we could try to construct some custom CSS to get the close button to look like you want…

    Let me know what you prefer 🙂

    Rolf
    Keymaster

    Ok, if I understand you correctly, you want a button on your site that (when clicked) opens a FancyBox light box in which you can see a slider that is managed by MetaSlider.

    This can be done, following these steps:

    A. Prepare FancyBox
    Go to Settings > Media, enable the option “Inline Content” and save.

    B. Get your slider shortcode
    1. Go to your MetaSlider admin page and either create a new slider or open the slider that you want to use.

    2. Scroll down to find on the right side the block “How to use”.

    3. Click on the shortcode there (it looks like with [metaslider id="xxx"]) which will copy that code to your clipboard.

    C. Add the button and popup to your content.
    1. Now go to edit the page or post where you want your button to appear and add a HTML block (or switch to the HTML tab if you are using Classic Editor). If you prefer the button in a widget area, then go to Appearance > Widgets and add an HTML widget.

    2. Now paste the shortcode there with Ctr+v.

    3. Next, copy/paste this code before the shortcode:

    
    < a href="#slider-1" class="fancybox-inline button">BUTTON TEXT</a>
    < div class="fancybox-hidden">
    < div id="slider-1" style="width:600px;height:400px">
    

    4. Next, copy/paste the following code after the shortcode:

    
    < /div>
    < /div>
    

    5. Now edit the code once more:
    – remove each space that appears right after each < in the code (the space was added to make the forum not parse these code snippets as html)
    – adapt the style="width:600px;height:400px" in the code above to better fit your slider
    – change the BUTTON TEXT to the text you want.

    6. Then save your post/page and test the link. It may not look like a button yet if your theme does not support the “button” class, but the link should already open the light box and show your slider.

    D. Style your link as a button (optional)
    Your theme may already have style rules for the class button but if not, then you have two options: 1. Add your own style rules or 2. use another class that is inside your theme style.css. The second option may be available if you notice that your theme is using call to action buttons in the front page hero area/header for example. You’ll have to find out which class these buttons use and adapt the example code (above, used in your post/page/widget) to use the same class. But if this is not possible, then I suggest the following:

    To make the link appear as a button, add the following CSS code in the theme Appearance > Customize > Additional CSS field:

    
    .button {
      background-color: #4CAF50; /* Green */
      border: none;
      color: white;
      padding: 15px 32px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
    }
    

    This CSS example is from https://www.w3schools.com/css/css3_buttons.asp where you can find more examples. But you can adapt it to anything you like. There are many examples out there if you do a search for “css button example” 🙂

    Rolf
    Keymaster

    Hi Todd, I’ll have to take a closer look at the Meta Slider. To make sure: is that https://wordpress.org/plugins/ml-slider/?

    in reply to: google rejecting sitemap #17459
    Rolf
    Keymaster

    Hi Michael, yes you need both XML Sitemap & Google News and Google News Advanced. Both plugins need to be activated but you only need the option “Google News Sitemap” activated on your Settings > Reading page. Now, you’ll have the advanced options available on your Settings > Google News admin page.

    You may also activate the option “XML Sitemap” on your Settings > Reading but then you’ll need to make sure to disable the XML Sitemap in the Rank Math options. There will be an admin notice explaining the incompatibilities and what you need to do to work around them. You may also use the sitemap provided by Rank Math.

    Whichever sitemap you choose, it should not impact traffic. An XML Sitemap is just a tool to help search engines find (new) content on your site. Once fully indexed, it will remain in the search engine results. If you do not add new content, you could even completely disable the sitemap and traffic should not be impacted. If you see a sharp drop in traffic, then it’s probably the new algorithm that is impacting your sites appearance in search results.

    One thing though: be sure to NOT include any URLs in your sitemap that are set to “noindex” by the SEO plugin. For example, if you set taxonomy archive pages to noindex, then do not include taxonomies in the sitemap. Or if you give a particular page noindex, then also set it to be excluded from the sitemap.

    You can use Google Search Console to monitor your sitemaps (both the normal and the news sitemap) for errors. And compare how many URLs provided by the sitemap are already indexed.

Viewing 15 posts - 1 through 15 (of 127 total)