Home User profile
tagDiv Member
We are about to go live with a website after migrating 16 years of news stories into the Newspaper theme.
g00dnews
tagDiv Member

If anyone wants to get Woocomerce product images working with a similar popup to the built-in theme popup you can add the following to you child thems functions file:

add_action( 'after_setup_theme', 'gnn_theme_setup' );
function gnn_theme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}

g00dnews
tagDiv Member

That seems to be working thanks!

I’m not sure what was happening there before. Possibly the error in tagdiv composer but adding the shortcodes manually seems to change the page content.

g00dnews
tagDiv Member

That was it thank you!

g00dnews
tagDiv Member

Hi Bogdan,

Regarding the shop frontpage. Are you saying that the actual Woocomerce frontpage can’t be changed and you need to use a page that isn’t set in the woocommerce settings?

If so, would you recommend just redirecting the actual woocommerce homepage to the newly created one?

The Woo breadcrumbs would point to the page set as the shop home in the settings so it sounds like this could cause some other issues.

g00dnews
tagDiv Member

There must be a work-around hack for the Mega Menu!

What if we used ‘posts’ about each product, but the urls redirected to the SHOP page, where we only have a limited number of special products?

Could anything like that work? I really need images of the products showing up in the mega-menu, but they could be featured images from posts.

Thanks!

g00dnews
tagDiv Member

Another question regarding Woocommerce.

Is there a way to get products showing in the megamenu in the same way that standard posts do?

Maybe a filter/hook to extend the available dropdown to include taxonomies other than just posts?

Thanks for your time.

g00dnews
tagDiv Member

Ok thanks.

Please let us know if you decide to add this functionality in the future.

g00dnews
tagDiv Member

I figured it out myself! But I didn’t see a way to delete my question. Sorry.

g00dnews
tagDiv Member

Use the ‘Pagebuilder + latest articles + pagination’ page template.

g00dnews
tagDiv Member

Hi,

We haven’t updated to 6 yet and there doesn’t seem to be anything in the child theme’s functions that enqueues the css.
It looks as though the parent theme is loading it.

Can you tell me where it’s hardcoded in the parent theme so I can modify it manually until we can update?

Thanks

g00dnews
tagDiv Member

I’ve narrowed it down to paid memberships pro.

It’s replacing the post__not_in values to remove pages the current user doesn’t have access to.

I’ve added an issue on github to see if they have a workaround.

I guess this can be closed. Thanks for your help!

g00dnews
tagDiv Member

Not having much joy with this.

I’ve set up a dev site and disabled all plugin except one, paid memberships pro (disabling it breaks the site).

Still seeing the same posts in the similar articles boxes http://dev.goodnewsnetwork.org/south-carolina-teens-fight-racist-vandalism-positive-message/

g00dnews
tagDiv Member

Hi,

I’ve tried the code but it seemed to break the page.
I also tried wp_reset_query(); but that didn’t work either.

I’ll need to set up a copy of the site to test then plugins.

I’ll let you know how it turns out.

g00dnews
tagDiv Member

I just managed to catch this again.

similar article showing current page

I opened the similar article in a new tab and checked the edit links in the admin bar and the post id’s were identical: 35924

It’s not easy to catch all the time as the site has thousands of articles but it is definitely happening.

g00dnews
tagDiv Member

Interesting. Was that always there or added recently?

We recently updated and I can see that code in the template.

This is one page where it was happening but I have caching enabled at the moment so it’s not going to be easy to see: http://www.goodnewsnetwork.org/one-good-deed-spread-40-tables-vermont-diner/

Viewing 16 posts - 1 through 16 (of 16 total)