I contacted SiteGround. Apparently the code found on this site embedded the line numbers when I copied the snippet.
I manually entered the code and then it works as expected.
Question: the WooCommerce zoom feature is rather difficult to use. Is there a known conflict with the theme? Is there an existing zoom feature I might have to disable? Because as it stands, I just removed the line of code in that snippet that enables the zoom functionality. The image juts around, and apparently starts off on page refresh relative to wherever your mouse is on the screen, which is obviously not an intended effect.
-
This reply was modified 8 years by
cantonjester.
What do I do to fix this?! I tried removing the code, clearing the cache, etc. The error still persists.
HELP.
I followed those instructions, and then realized that the lightbox checkbox I needed to activate wasn’t available in WooCommerce Product Display settings.
So I added the following snippet of code to the Child Theme’s function.php file:
add_action( 'after_setup_theme', 'yourtheme_setup' );
function yourtheme_setup() {
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
}
I adjusted the ‘yourtheme’ to ‘newspaper’. Please let me know what this needs to be if that’s not accurate.
It broke the site. I’m now getting the following error:
Parse error: syntax error, unexpected ‘3’ (T_LNUMBER) in /home/robywebd/public_html/cet/wp-content/themes/Newspaper-child/functions.php on line 31
Thank you for the reply!
A couple things:
1) How is the solution you provided going to affect *ONLY* the scenario I described? Again, I only want the functionality (hyperlink opening in new tab) to occur on the WooCommerce product page.
2) How would I affect these changes in the Child Theme, and not in the main theme files?
What I did was to create a custom sidebar for particular WooCommerce products. Some of the products have relevant posts found elsewhere on the site. So I create a series of categories for the posts that I want to load in the relative products’ sidebar. I put a block in each of the custom sidebars (each product gets their own sidebar), and then on the product page, I call that custom sidebar.
It works fine.
I just need to now be able to have those particular blocks within those specific sidebars to launch the content behind those hyperlinks in new tabs (because the visitor is now on a product’s ‘buy now’ page).
Does this make sense?

I want to use this technique for all products, but not when the blocks are used elsewhere on the site.
Actually, I figured out how to do it. The question now is: how do I make particular smart sidebars, or the modules/blocks contained within them, have the hyperlinks to the posts they contain open in new tabs/windows?
-
This reply was modified 8 years by
cantonjester.
I was only saying that my request echoed ipcs’s. I also added that I selected ‘Block 9’, because the Block 9 icon implies that you can achieve a single list of post titles without thumbnails. The thumbnails part is accurate, but not the single column that would span a reasonable width of the page.
I had the same question. The problem is that the icon for ‘Block 9’ indicates that you have the ideal layout of stacked list of posts in one column. I took the icon to be accurate since the ones that have image placeholders will by default, show images, and the ones that do not, don’t.
Maybe you have an SEO optimizer like Yoast? Check to see if the title there says ‘Blog’..