Advertisement:

Author Topic: [SOLVED] Not working while clicking on the category in mobile version  (Read 6093 times)

sugeshrajs

  • Newbie
  • *
  • Posts: 35
Hi,

Anyone plz help me to clear this issue.  In the desktop version all are working fine.  But in the mobile version when we try to click on any category item it is just color changing and not showing anything.

http://beta.keralarise.com/

Plz check the below link and try to reduce the browser size.  The mobile version will active and when clicking on the category, just button color change is happening.  In desktop version it will goes to the search page.

Thank you in advance.

Sugesh Raj
www.keralarise.com
« Last Edit: January 29, 2014, 09:24:39 am by sugeshrajs »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Not working while clicking on the category in mobile version
« Reply #1 on: January 27, 2014, 06:26:13 pm »
@sugeshrajs
I think mobile plugin is not supported anymore  :(

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Not working while clicking on the category in mobile version
« Reply #2 on: January 28, 2014, 01:51:03 am »
you deleted your responsive div :-)
here you go, put it back in footer.php <before footer codes>
<div id="responsive-trigger"></div>
also make sure you haven't deleted any other scripting
and did not remove the function

sugeshrajs

  • Newbie
  • *
  • Posts: 35
Re: Not working while clicking on the category in mobile version
« Reply #3 on: January 28, 2014, 08:22:49 am »
Thanks for the reply.

This <div id="responsive-trigger"></div> is already exist and the responsive is working fine.  Only problem is the category list showing which is not hyper linked.  Clicking on the category link doesnt go to the concerned category. 

But on the desktop version it is working fine.  In the mobile version only this is not working.  While clicking it is just changing the color.  You can also test it by smaller the browser width, it will show the mobile version and click on the category.

 http://beta.keralarise.com/

Thanks

Sugesh Raj S

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Not working while clicking on the category in mobile version
« Reply #4 on: January 28, 2014, 10:23:12 am »
@sugeshrajs
There are links, but it is unclickable  :o

sugeshrajs

  • Newbie
  • *
  • Posts: 35
Re: Not working while clicking on the category in mobile version
« Reply #5 on: January 28, 2014, 10:27:57 am »
@frosticek

Please help me to make it clickable.  Ya link is there.  When i put the mouse over it it is showing the link.

When i right click and open it in new window, it is working but for left click it is not.  What change has to be done to make it clickable.

Thanks in advance.

Sugesh Raj

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Not working while clicking on the category in mobile version
« Reply #6 on: January 28, 2014, 05:19:21 pm »
Hi,
i had the same problem, is working if you have subcategories, but if you have only categories is not working.
What i did is a little change in file function.php in your theme folder
find the line (around 198)

<h1><a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></h1>

and replace with

Code: [Select]
<h1><a onclick="javascript:location.href='<?php echo osc_search_category_url() ; ?>'" class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span></h1>
and line 203

<a class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a>

with

Code: [Select]
<a onclick="javascript:location.href='<?php echo osc_search_category_url() ; ?>'" class="category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a>
i'm not sure if you need to change the second line to, try only the first and then you see if is working

sugeshrajs

  • Newbie
  • *
  • Posts: 35
Re: Not working while clicking on the category in mobile version
« Reply #7 on: January 28, 2014, 05:48:36 pm »
@cartagena68

Thank you Thank you Thank you very much....

I have changed the first line only and it is working fine.....


Thank you once again.

Sugesh Raj
www.keralarise.com

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Not working while clicking on the category in mobile version
« Reply #8 on: January 28, 2014, 06:30:55 pm »
awesome help :-)

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Not working while clicking on the category in mobile version
« Reply #9 on: January 28, 2014, 08:36:13 pm »
Glad to help, if i can.

If is working, please, mark [SOLVED] on the title

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Not working while clicking on the category in mobile version
« Reply #10 on: January 29, 2014, 02:05:55 am »
@cartagena68
It is also way how to go, but it did not solved core of problem. Unfortunately I was not able to find reason why link is unclickable  :-X

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Not working while clicking on the category in mobile version
« Reply #11 on: January 29, 2014, 02:44:47 am »
@cartagena68
It is also way how to go, but it did not solved core of problem. Unfortunately I was not able to find reason why link is unclickable  :-X

Hi frosticek,
i think the problem have to do with some javascript for responsive trigger.
If you have subcategories, when you click on a category from mobile device, will drop down the subcategory list and then you can click on a subcategory.
If you have only categories, from a mobile device nothing happen because there isn't a subcategory list to drop.
I don't know how to solve this, but i find the solution to add the onclick event that is working fine, if somebody or even the osclass devs will find a better way to fix the problem, much better

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Not working while clicking on the category in mobile version
« Reply #12 on: January 29, 2014, 04:29:35 am »
Hi,

I have created an issue here https://github.com/osclass/theme-bender/pull/12
when devs get time will probably review it and accept this either as a permanent solution or find something better.

Regards

haryour

  • Newbie
  • *
  • Posts: 36
  • My fingers and keyboard are magno-reacting
Re: [SOLVED] Not working while clicking on the category in mobile version
« Reply #13 on: February 25, 2014, 04:49:25 am »
@cartagena68

Thanks man! You are a genius.

Got the question for you. The Sort By is inactive i.e. unclickable. How do I go about this?

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: [SOLVED] Not working while clicking on the category in mobile version
« Reply #14 on: February 25, 2014, 05:00:56 am »
@cartagena68

Thanks man! You are a genius.

Got the question for you. The Sort By is inactive i.e. unclickable. How do I go about this?

First thank you, second i'm not a genius.

About your question, i don't understand what you mean. Is your site online?