jarr24
Forum Replies Created
-
I still need help with this issue.
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] SEO: title and altThank’s for answer. Please add also title attribute for “a” tag inside IMAGE block. It’s very important for SEO. Have a nice day!
Forum: Themes and Templates
In reply to: [OceanWP] Problem with gutenberg output when using My LibraryI found the solution. Default blocks works correctly. Turns out the problem was related to Spectra Blocks plugin. I added one line to partials/footer/widgets.php in template folder:
(new UAGB_Post_Assets( $get_id ))->enqueue_scripts();
if ( ! empty( $get_id ) ) { if ( OCEANWP_ELEMENTOR_ACTIVE && $elementor ) { // If Elementor. OceanWP_Elementor::get_footer_content(); } elseif ( OCEANWP_BEAVER_BUILDER_ACTIVE && ! empty( $get_id ) ) { // If Beaver Builder. echo do_shortcode( '[fl_builder_insert_layout id="' . $get_id . '"]' ); } else if ( class_exists( 'SiteOrigin_Panels' ) && get_post_meta( $get_id, 'panels_data', true ) ) { echo SiteOrigin_Panels::renderer()->render( $get_id ); } else { // If Gutenberg. if ( ocean_is_block_template( $get_id ) ) { $get_content = apply_filters( 'ocean_footer_template_content', do_blocks( $get_content ) ); (new UAGB_Post_Assets( $get_id ))->enqueue_scripts(); } // Display template content. echo do_shortcode( $get_content ); } // Display widgets. }
Forum: Themes and Templates
In reply to: [OceanWP] Problem with gutenberg output when using My LibraryIn the footer section I’ve got not rendered block styles. I’m using My Library with selected Custom template. How to render this part of website properly?
Whole script from google:
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’https://www.google-analytics.com/analytics.js’,’ga’);ga(‘create’, ‘UA-123456789-1’, ‘auto’);
ga(‘send’, ‘pageview’);Forum: Themes and Templates
In reply to: [OceanWP] How to remove TYPOGRAPHY section from style.css file?Hello,
You can see white rectangle when zoom icon or link icon is clicked on my Portfolio page:
Any idea how to solve the problem?
Kind Regards!Forum: Themes and Templates
In reply to: [OceanWP] Focused a tag with white backgroundHello,
You can see snapshot here:
https://ibb.co/PTjBGTbForum: Themes and Templates
In reply to: [eStore] eStore child themeHi!
Last theme update resolves this problem.
Thanks and Regards,
JarrForum: Themes and Templates
In reply to: [OceanWP] OceanWP Child theme has no woocommerce body classesAnother solution in function.php (child theme):
add_filter( ‘body_class’, ‘add_woocommerce_body_class’, 15 );
function add_woocommerce_body_class( $classes ) {
$classes_new = wc_body_class($classes);
return $classes_new;
}In header.php (child theme):
<body <?php body_class(); ?>>Forum: Themes and Templates
In reply to: [OceanWP] OceanWP Child theme has no woocommerce body classesMy current solution for OceanWP Child Theme:
<body class=”<?php echo implode( ‘ ‘, wc_body_class(get_body_class()) ); ?>”>
Any other ideas?
- This reply was modified 5 years, 2 months ago by jarr24.
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP Child theme has no woocommerce body classesHi,
I found solution for Parent Theme (not for Child theme).
The body tag in header.php file should contain also default wordpress classes from get_body_class()BEFORE:
<body <?php body_class(); ?>>AFTER CHANGES:
<body <?php body_class( implode( ‘ ‘, get_body_class() ) ); ?>>Any solution for Child Theme?
- This reply was modified 5 years, 2 months ago by jarr24.
Forum: Plugins
In reply to: [WooCommerce] WP Child theme has no woocommerce body classesHi,
I found solution.
It was OceanWP theme problem.
The body tag in header.php file should contain also default wordpress classes from get_body_class()BEFORE:
<body <?php body_class(); ?>>AFTER CHANGES:
<body <?php body_class( implode( ‘ ‘, get_body_class() ) ); ?>>Please fix it in next theme version.