alexis888
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OceanWP] Add an image (Div) bellow #site-headerHey @wpfleek, thanks for the answer but as staten in my initial post I don’t use a page builder and don’t want to for this website. I usually use Elementor but for this website the only point of using a page builder would be to create that image / div bellow #site-header.
I found a workaround in CSS but not sure it’s the best solution :
.page-header::before{ display: block; content: ""; background-image: url('./img/header.jpg'); background-size: 80vw; background-position: bottom; background-repeat: no-repeat; background-color: var(--hero-bg); max-height: 700px; height: 100vh; min-height: 100px; }
Forum: Themes and Templates
In reply to: [OceanWP] Hide specific category term in product metaHello, no worries. I’m actually using Rank Math and their support provided me a solution which is :
Here is a complete code:
add_filter( 'term_links-product_cat', function( $links ) { return [ $links[0] ]; });
Please add this code to your theme’s functions.php file.
You can further filter it, so say for e.g. if you want to show the primary category only on page with ID 1, then you can use
is_page( 1 )
condition.Hey,
I tried on a website on localhost where it says “UpdraftPlus: web_server_disk_space is empty” when loading the page. The backup is uploaded to my Dropbox account online and then synced to my Dropbox folder on my computer, no problem with that.
When this is done I get the “unexpected answer” alert box issue though.Here is a screenshot of the console :
https://ibb.co/NxCtjnMWonderful, it works like a charm. Thank you very much !
Hello,
so I’ve run an extensive test before / after updating to the last version on 4 websites I have on localhost with UpdraftPlus and where I had the same issue.Website 1 : Updraft is the only plugin I have installed on.
Before updating : the issue happens when loading the page or deleting a backup
After updating : the issue sometimes happens when loading the page or deleting a backup but not every timeWebsite 2 : I didn’t disable / uninstal any plugins
Before updating : the issue happens when loading the page or deleting a backup
After updating : the issue doesn’t happens anymore when loading the page or deleting a backupWebsite 3 : I didn’t disable / uninstal any plugins
Before updating : the issue happens when loading the page or deleting a backup
After updating : the issue sometimes happens when loading the page or deleting a backup but not every timeWebsite 4 : I did the update two days ago when it was released
Before updating : I don’t remember the exact behavior
After updating : It doesn’t happen anymoreWhen thing I noticed is when the alert message and console message
UpdraftPlus: could not parse the JSON
are not appearing, there is this message instead on the consoleUpdraftPlus: web_server_disk_space is empty
Screenshot : https://ibb.co/dr2r2NQ
Is this the normal behavior ?Hello.
With this
$terms = wc_get_product_category_list( $product->get_id(), ', ', '<span class="posted_in">' . _n( '', '', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '</span>' ); echo $terms[0];.
I’m getting
<
as a result which is the first caracter of the<span>
Same thing if I used my simplified version to test :
<?php echo wc_get_product_category_list( 85, '', '' , '' ); ?>
I’m getting
<
as a result which is the first caracter of the<a>
links createdIf I
var_dump($terms[0]);
I’m getting
C:\wamp64\www\flipside\wp-content\themes\oceanwp-child-theme-master\woocommerce\single-product\meta.php:38:string '<' (length=1)
If I
var_dump($terms);
I’m gettingC:\wamp64\www\flipside\wp-content\themes\oceanwp-child-theme-master\woocommerce\single-product\meta.php:38:string '<span class="posted_in"> <a href="https://localhost/flipside/print/" rel="tag">Print</a>, <a href="https://localhost/flipside/preorder/" rel="tag">Preorder</a></span>' (length=164)
Hey
I tried on Firefox and Edge (I was on Chrome when I reported the issue).On Firefox, when I loaded the page the first time I did get the alert box with the same message and these error messages in the console :
https://ibb.co/PQ39T33
https://ibb.co/DpMjRFQThen when I reloaded the page I didn’t get the alert message box but still the same messages in the console :
https://ibb.co/q9tTJ5yI tried to log out, log in again and load the page and no alert box either.
On Edge, no issue.
Eventually I tried to replicate the same process I did yesterday and until today on Chrome and didn’t get any error.
So I don’t get it :/ It’s been doing that for weeks on 3 websites on local and now it doesn’t do it anymore.
Hey @bcrodua , thanks for your answer but it doesn’t seem to be what you suggest.
I’ve tried to deactivate all plugins, then delete them to keep only updraftPlus, and also switch theme (from OceanWP to twenty twenty or Storefront) but issue is still here.I tried deleting all the backups I add and bulk delete didn’t seem to work so I deleted them manually one by one and got the same message / everytime after the backup was deleted.
Hello,
thanks for your answer.
However I’m sorry but I don’t get how to solve my problem despite your explanations. I’m not an advanced developper.I striped down the parameters of the function to understand how it works and came down to this (85 being the id of the product i’m testing on)
<?php echo wc_get_product_category_list( 85, '', '' , '' ); ?>
but I’m still getting both category terms displayed, not only the Primarty Category Term.
I understand that’s becausewc_get_product_category_list()
usesget_the_term_list()
function which in turn usesget_the_terms()
, yey I don’t manage to get the result I want.The status of this post is not resolved as I still have my problem, even though it’s updated as such with each of your answers.
Thanks
Hello, thanks for your answer.
I understand the logic of it but I’m really unable to tweak the code of my existing theme (OceanWP) to make it work :/The function displaying product categories in Product meta on a single product page is :
<?php echo wc_get_product_category_list( $product->get_id(), ', ', ' <span class="posted_in">' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '</span>' ); ?>
I couldn’t manage to find the function displaying the prodcut categories in the loop on the product Archive page though.
Here is a link to a dev environement of the store. : https://flipside.sc2gaal6509.universe.wf/
Any way you could help me tweak the code around to manage to solve my problem ?
Thank you very much- This reply was modified 4 years, 6 months ago by alexis888.
Forum: Plugins
In reply to: [LiteSpeed Cache] “Remove Comments” blocks Elementor EditorIt seems it does fix the issue ! thanks
Forum: Plugins
In reply to: [LiteSpeed Cache] “Remove Comments” blocks Elementor EditorCool, i’ll keep an eye out and check the changelog on the next update to see if it was added
cheersForum: Plugins
In reply to: [LiteSpeed Cache] Cache unavailableThanks for the feedback ! I’ll bookmark this thread and use it as a fix is I face the same problem again then.
cheers
Forum: Plugins
In reply to: [LiteSpeed Cache] Cache unavailableHey y’all.
I’ve had the same issue randomly happening on several of my website hosted on o2switch and no proper answer by the support to why it was happening.@scratchmyroi if you get one, would you mind sharing it here ?
Ps : je suis fran?ais également
Forum: Plugins
In reply to: [Redirection] Plugin not accessible with Shop Manager rolePerfect that’s what I needed. thanks !