drmrgood
Forum Replies Created
-
This is not what I asked. Read my question again and view screenshot.
I have the same problem, so please advise us.
But I don’t want to remove Blackhole neither I want to remove caching plugin.
So, for my needs my solution is perfect.Forum: Plugins
In reply to: [ELEX WooCommerce Request a Quote] Impossible to translateI installed your translated plugin and everyhing was perfect but several days ago your plugin change interface language to Dutch. Other plugins are in English and yours is in Dutch. When I change my WordPress language in Settings to English your plugin is in English too. But when I change my website language to Croatian your plugin changes to Dutch.
Forum: Plugins
In reply to: [ELEX WooCommerce Request a Quote] Impossible to translateI did that, so I’ll just wait for the Croatian version then. Thanks!
I successfully added all .pdf files from a folder where they are located but I slightly modified the code for custom-sitemap.php file in this link:
https://rankmath.com/kb/custom-sitemaps/
New code is:
<?php
namespace RankMath\Sitemap\Providers;
defined( ‘ABSPATH’ ) || exit;
class Custom implements Provider {
public function handles_type( $type ) {
return ‘custom’ === $type;
}
public function get_index_links( $max_entries ) {
return [
[
‘loc’ => \RankMath\Sitemap\Router::get_base_url( ‘custom-sitemap.xml’ ),
‘lastmod’ => ”,
]
];
}
public function get_sitemap_links( $type, $max_entries, $current_page ) {
$links = [];
// Define the folder where the files are stored
$folder = ‘/manuals/’;
// Get the list of files in the folder
$files = glob( ABSPATH . $folder . ‘*’ );
// Loop through each file
foreach ( $files as $file ) {
// Get the file name
$file_name = basename( $file );
// Get the file URL
$file_url = home_url( $folder . $file_name );
// Add the file URL to the links array
$links[] = [ ‘loc’ => $file_url ];
// Check if the maximum number of entries is reached
if ( count( $links ) >= $max_entries ) {
break;
}
}
return $links;
}
}
If someone needs something similar just change /manuals/ according to the folder you need.- This reply was modified 1 year, 1 month ago by drmrgood.
Forum: Plugins
In reply to: [Yoast SEO] Classima theme & Classified Listing Pro problemI successfully resolve this with this code:
add_filter(‘wpseo_robots’, ‘yoast_my_noindex’, 999); function yoast_my_noindex($string= “”) { if ( have_posts() == false ){$string= “noindex, follow”;} return $string; }Forum: Plugins
In reply to: [Yoast SEO] Classima theme & Classified Listing Pro problemAs you can see here:
See https://i.ibb.co/myQZS6R/novo.jpg
I have an option for Listings Categories and Listing Locations in Yoast SEO. All I need is that empty categories and locations are noindex.
I tried this code in functions.php but it doesn’t work:
// Noindex empty locations
add_action(‘wp_head’, ‘noindex_empty_locations’);
function noindex_empty_locations() {
global $post;
if( is_singular(‘listing’) && ( !has_term( array(), ‘listing-location’, $post->ID ) ) ) {
echo ”;
}
}
// Noindex empty listings
add_action(‘wp_head’, ‘noindex_empty_listings’);
function noindex_empty_listings() {
global $post;
if( is_singular(‘listing’) && ( !has_term( array(), ‘listing-category’, $post->ID ) ) ) {
echo ”;
}
}- This reply was modified 1 year, 6 months ago by drmrgood.
All of a sudden the file index.php placed in wp-content/wflogs folder no longer exists.
Forum: Plugins
In reply to: [Croatian payment slip generator for WooCommerce] Manja slika uplatnice 2Trenutno nije ukljuceno medjutim kad je ukljucena ta opcija ne dobije se nikakva slika uplatnice na samom sajtu nego slika dolazi na mail kupcu.
Hvala lijepo! Da li ovo ubacujem bilo gdje u css od postojece teme?
Edit: Probao sam na ovaj na?in me?utim slika uplatnice je ostala iste veli?ine. Kod sam ubacio pod Appearance->Customize->Additional CSS.
Cak sam dodao i important ali ne radi.
Takodjer ne radi niti s ovim:
-moz-transform:scale(0.5);
-webkit-transform:scale(0.5);
transform:scale(0.5);