Nico Gauthier-Pin
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Popular Posts] critical error after plugin updateI just tested the Front.php patch and can confirm it works for me too.
WordPress: 5.4.2
PHP: 7.0.33
Plugin version: 5.2.0 with patchForum: Plugins
In reply to: [The Events Calendar] HELP, Events Detail Drop-down issues!Could it be that the Woo styles are being enqueued because of the Tickets integration?
Anyway, thanks to Kyle! I had done a much more crude fix but yours is a lot cleaner.
Forum: Plugins
In reply to: [The Events Calendar] HELP, Events Detail Drop-down issues!I’m having the exact same issue. I narrowed it down to WooCommerce overriding the default Chosen styles. They add this on their stylesheet:
.chzn-container .chzn-drop { background:#fff; border:1px solid #aaa; border-top:0; position:absolute; top:29px; left:0; -webkit-box-shadow:0 4px 5px rgba(0,0,0,0.15); -moz-box-shadow:0 4px 5px rgba(0,0,0,0.15); box-shadow:0 4px 5px rgba(0,0,0,0.15); z-index:1010 }
That
left: 0;
breaks any Chosen drop down that’s in the page, by always showing it open. I emailed the WooCommerce team about it, and I’m trying to find a fix that doesn’t require modifying any plugin.A client emailed me today freaking out because he updated the plugin and it “broke” his site.
For what it’s worth, the line turning on display errors is not hard to find. It’s at the beginning of youtube-sidebar-widget.php. I deleted it for now and I’ll wait for an update.
Forum: Fixing WordPress
In reply to: wp-rss2 not working. Fix with htaccess?Well, I ended up using this 301 redirect, which seems to work:
redirect 301 /wp-rss2.php/feed/ https://www.website.com/feed/
I don’t have much experience with htaccess though, so if someone believes it’s the wrong approach or there’s a better way, please leave a note! At least for anyone seeing this thread in the future ??
It took me a bit to find this (I had to go through the plugin’s code), but you can remove the PicLens link by adding a custom field on the page with name “ngg_gal_ShowPiclense” and value 0.
Forum: Fixing WordPress
In reply to: List all posts by monthI know this is solved already, but I had the exact same problem today and made it work without a plugin. Use this:
query_posts($query_string.”&posts_per_page=-1″)
By using $query_string you are keep the original query (all posts in a particular month), and then adding the posts_per_page parameter to it. If you don’t add that, what you’re doing is replacing the original query for a new query with whatever parameters you use.
Forum: Fixing WordPress
In reply to: Static home page AND blog pageI know is_archive() shouldn’t work, but it was set already.
The way this site is set up, the home page shows the lastest post, with some text on the sidebar. For the archive pages, I want to show categories, archives, etc, on the side as well. It works for category or date archives, but not for the Archives Page I made.
What I’m using is if(is_archive() || is_single() || is_page(‘Archives’))
Forum: Fixing WordPress
In reply to: Static home page AND blog pageThe file is called archive_template.php, and the template name is Archive Template.
Forum: Fixing WordPress
In reply to: Static home page AND blog pageThis brings up another question. I made a Page called “Archives” and set for it a template that’s a copy of index.php. Now how do I reference this new Archives Page with conditional tags? is_page(‘Archives’) doesn’t work, nor does is_archive().
Forum: Fixing WordPress
In reply to: Static home page AND blog pagedaltonrooney:
I tried that, but a page template that includes a loop won’t work unless I do a custom query, and then the pagination doesn’t work.
Is that site you linked to yours? How exactly did you manage to make it work??
EDIT: No wait, I think it works… let me test some more.
EDIT 2: Yup, it works! Thanks :).
EDIT 3: Moshu: I see what you mean. I liked using home.php, it was easier for my clients to install the theme (less settings to deal with), but I guess I’ll have to stick to this method.
Forum: Fixing WordPress
In reply to: Home link under Pages in sidebar – 2.1I had to do this for a client recently. First thing I tried was creating a custom pages widget, but that somehow made the RSS feed not validate. So what we ended up doing was creating a Page called “Home” and then using this plugin:
https://asymptomatic.net/2005/03/22/1413/redirectify-plugin/
and redirected that Page to the home page. Easy and worked like a charm. You can even add links to external pages on your Pages list.
Forum: Plugins
In reply to: Custom search widget – i can’t login anymoreYup, that did it. Thanks!