Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter stanoam

    (@stanoam)

    The plugin is still crawling through the pages, but several are already processed and failed. The page status is failed (failed tab in the admin panel). In the error column there is a “Copy Error” button, which when I click and paste, get the following output: “Could not write into css file”. This leads me to believe it’s some sort of permissions issue. Sorry, I’m not attaching a screenshot – currently unable to upload it. Will add later if necessary.

    Seems to happen completely at random and it’s specific to one website. If I open the checkout page using VPN it always appears normal to me. An interesting thing I noticed is that it affected one particular customer three times. So I’m wondering it’s not something browser or device related, rather on our end. Also, problem hasn’t appeared int he past couple of weeks, so fingers crossed, whatever was provoking it has been fixed.

    Hello. I can confirm this bug as well. It’s been randomly giving the error at one of our websites for maybe a couple of months now. Initially, I thought it was limited to just US customers, but just had a customer from Portugal send me a screenshot with the same error.

    stanoam

    (@stanoam)

    You’ve to put them into an array:

    is_product_category(array(‘fete-des-meres’,’fete-des-grand-meres’))

    You can also use the product category ID instead of the slug (no quotes, this time):

    is_product_category(array(25,31))

    Hope that helps.

    Thread Starter stanoam

    (@stanoam)

    Ok, here is another solution – this one is PHP. Just find the php file that contains the title element – 8 out of 10 times it’s header.php and replace the code within the tags with something similar to this:

    <h1 class="page_title">
    	<?php 
    		if (is_tax()) {
    			echo strip_tags(single_tag_title());
    		}
    		else {
    			echo strip_tags(get_the_title());
    		}
    	?>
    </h1>

    Where the h1 is the title element, “if is_tax” tells WordPress to display the title without “Tag:”, “Category:”, “Brand:” etc. if it is a taxonomy page and the “else” tells it to just display the page title. I ended up using this, instead of the jQuery script, as it took for time to fire up and you could actually see the “Tag:” blink in there for half a sec. I’m sure it’s not the best solution for a PHP savvy person, but it serviceable for my needs, in situations where taxonomy settings are not easily accessible and you have to dig through tens of php files.
    Note it would definitely break during theme update, unless applied to a child theme.

    Thread Starter stanoam

    (@stanoam)

    Alright – problem SOLVED. Went back to the jQuery drawing board, realized I was an idiot and was using element “id” instead of “class”, which is why my script didn’t work previously. Leaving it here for future reference, in case anybody stumbles from google, having the same problem.

    <?php if( is_product_tag() ) { ?>
        <script>
            jQuery(document).ready( function() {
                jQuery('.tax-product_tag .page_title:contains("Tag: ")').each(function(){
                    jQuery(this).text($(this).text().replace('Tag: ',''));
                });
            });
        </script>
    <?php } ?>

    The PHP tags restrict the script to only be executed on product tag pages and the jQuery looks for the ‘Tag: ‘ string in the page title and removes it. Place it in the footer, above the </body> tag. Nice and simple, with the added bonus of not having to worry about it breaking during plugin update.

    Thank you for the suggestions seank123.

    Thread Starter stanoam

    (@stanoam)

    Thank you for the suggestion. Unfortunately, the pluging doesn’t help – it’s probably some function dug deeeeeeeeep inside some file. I did come across this very nifty plugin thought:

    https://www.ads-software.com/plugins/what-the-file/

    Didn’t solve my problem but will definitely be useful in future.

    Thread Starter stanoam

    (@stanoam)

    Nope :). I need the exact php file, but after hours of digging, I still haven’t found it. Tried removing the text with jQuery and Javascript, but it doesn’t work for some reason.

    Thread Starter stanoam

    (@stanoam)

    No, I mean the literal page title. Like on this page – it says “Tag: Allergan”:

    https://medisilk.com/features/allergan/

    I am using the tags to filter the products by Manufacturer and it bugs the hell out of me that the “Tag:” text is attached in front of the actual page title. I mean – it just looks plain bad. Spent over half a day looking for a solution (i.e. the file I need to edit), then gave up and posted here :).

    • This reply was modified 6 years, 4 months ago by stanoam.
Viewing 9 replies - 1 through 9 (of 9 total)