pacmen
Forum Replies Created
-
Resolved.
update:
I’ve fixed the sidebar showing up below the content. However, it’s not the solution i want.
Solution:
Since this widget was at top in the sidebar,
Replaced “WooCommerce Predictive Search” widget to the bottom of the sidebar.Must be something going wrong when having the Predictive search at the top of the widgets, no clue what tho.
update:
Sidebar now showing up – but BELOW content.
I solved the problem of the sidebar not showing up/displaying/working on woocommerce pages – However now it’s displaying it below the content on woo’s pages.
How i solved the “sidebar not showing up”?
The “woocommerce” file contained some faulty symbols in the first lines which calls the sidebar class so this probably couldn’t have been noticed or fixed by you guys..For people having this particular problem in Goodlayers themes where the classes are usually started with “gld-” you’d need to do a slightly different modification to make Woo display correctly as with most theme’s. (if you also still need to do this, or have a sidebar problem after doing that, continue reading)
After doing that and a hundred other things at the same time, i must’ve overseen some important character mistakes such as
` and having the sidebar class as a comment.
This is why it did not function:
<?php get_header(); ?> <?php // Check and get Sidebar Class //$sidebar = get_post_meta($post->ID,'page-option-sidebar-template',true);*/ $sidebar = ‘left-sidebar’; // left-sidebar, both-sidebar or no-sidebar $sidebar_array = gdl_get_sidebar_size( $sidebar ); ?> <div class="page-wrapper single-page <?php echo $sidebar_array['sidebar_class']; ?>"> <?php //$left_sidebar = get_post_meta( $post->ID , "page-option-choose-left-sidebar", true); //$right_sidebar = get_post_meta( $post->ID , "page-option-choose-right-sidebar", true); $left_sidebar = sidebar;$right_sidebar = right-sidebar; echo '<div class="row">'; echo '<div class="gdl-page-left mb0 ' . $sidebar_array['page_left_class'] . '">'; echo '<div class="row">'; echo '<div class="gdl-page-item mb20 ' . $sidebar_array['page_item_class'] . '">'; // page content global $gdl_item_row_size; woocommerce_content();
As you can see it’s clearly my mistake here by making some functions a comment, and because the link mentioned above from Goodlayers contained the same characters used for “CODE” content ( ` ) when posting a reply here on www.ads-software.com in it’s tutorial to create the template files. So replace these by ‘ .
—
That solved that matter – However i still need help with the sidebar displaying below the content although i’ve readed many topics regarding that problem while searching for a solution for the not showing up part.
Thanks in advance!
Sorry, i mend i’ve got the “woocommerce.php” in my theme’s root dir.
Also got the /woocommerce folder in it.Hi James, thanks for your reply!
As far as i know the theme doesn’t have any WooCommerce preparation in it! So far i’ve manually edited my way through it with all kind of methods and reversed these if they did not work – And one of those things is as mentioned using the
woocommerce_content()
method.I’m using it already inside “woocommerce.php” in my theme’s subdir “woocommerce” (holding Woo’s template files)
I’ve figured some useless styles in my css probably from an old plug-in, deleted the classes but still no luck with the sidebar.
Forum: Plugins
In reply to: [WooCommerce] Cross-Site Scripting Vulnerability – WARNINGThanks for this info, immediately changed it.
Note: I have some sort of idea it has to do with the
"gld.page-item twelve-colums"
when you inspect the element through Firefox.