Site logo

Archived topic

mobile header issue

12 replies · Started by chris on June 5, 2021

Viewing posts 1–13 of 13

Hi on the link provided on mobile view, the subscribe button i used element for displayed to : entire site, doesnt appear,

Also the logo image on product category page is off, but on the home page its not? very confused by this if anyone could help that would be very much appreciated.

Hi Chris,

The logo is off because the button is missing.

Can you take a screenshot of your elements' list? So we can eliminate the location conflicts first.

Let me know :)

Hey attached image of all my elements, thanks

I'm not sure if this element location is affecting the menu item one:
https://www.screencast.com/t/h29u88pxOtO

Let's try removing the entire site from the exclusion rule.

If it doesn't work, could you try temporarily set all the other elements to draft to test?

Hey, removed the whole element and still the same.

To clarify the subscribe button element doesnt show correctly only on woocomerce pages, and my site logo is only out of position on these pages too.

I noticed it doesn't appear on product archive pages but does appear on all the other pages. It's very strange.

Can you try to add some text content to the menu bar item hook as well just to test if the issue from the element content itself?

Let me know :)

Doesn't seem to change anything at all. All elements are not displaying on any woo page i found too not just the subscription element.

I tried adjusting logo with CSS but not sure how to target woo pages only.

I can fix with normal CSS but it changes the top margin of the logo on the pages it currently looks fine on, no clue why elements aren't displaying

Update: subscription element doesnt work on any page other than homepage.

The subscription button was showing on all pages except archive pages, can you try to disable all plugins except GP premium to eliminate conflicts from other plugins?

If it's a live site, I would recommend starting a staging site to safely do the test.

Are you using a child theme? Did you add any custom functions to the site?

Let me know :)

Hey thanks,

I think i am using a child theme yeah, and i found the issue, the code used to work fine but it's a snippet of code i used to make out of stock products display after all instock itmes.

/**
* Sorting out of stock WooCommerce products - Order product collections by stock status, in-stock products first.
*/
class iWC_Orderby_Stock_Status
{
public function __construct()
{
// Check if WooCommerce is active
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
add_filter('posts_clauses', array($this, 'order_by_stock_status'), 2000);
}
}
public function order_by_stock_status($posts_clauses)
{
global $wpdb;
// only change query on WooCommerce loops
if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag())) {
$posts_clauses['join'] .= " INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) ";
$posts_clauses['orderby'] = " istockstatus.meta_value ASC, " . $posts_clauses['orderby'];
$posts_clauses['where'] = " AND istockstatus.meta_key = '_stock_status' AND istockstatus.meta_value <> '' " . $posts_clauses['where'];
}
return $posts_clauses;
}
}
new iWC_Orderby_Stock_Status;
/**
* END - Order product collections by stock status, instock products first.
*/

Any idea how to work around this?

We cannot help with custom functions in this forum unfortunately especially it's not related to the theme at all.

I'd recommend checking with the author of the code or WooCommerce' support team.

This archived topic is closed to new replies.