Hi Mark F, where is the hook hook_mobile_content_output() used in mobile output?

  • Hemanta Chakladar
    Hemanta Chakladar
    September 7, 2015 at 7:21 pm

    For mobile site == on, content-mobile.php is used and there only the hook hook_mobile_content_output() is there. So, somewhere this hook has been used to design the mobile output.

    Where is that ?

  • Mark
    Mark
    September 7, 2015 at 10:09 pm

    There are number of files used for mobile:
    content-single-listing-mobile.php
    content-mobile.php
    header-mobile.php
    home-mobile.php
    search-mobile.php
    footer-mobile.php

    Apart from the mentioned function hook, there are number of other elements in there such as html and shortcodes.
    The hook_mobile_content_output() is used in class_core.php to load function mobilesearchcontent (which is also located in class_core.php

    But if you then look in defaults_directory.php (or defaults_{name-of-your-theme}.php – you might find that the hook_mobile_content_output is being overwritten in there.

    Mark

  • Clive
    Clive
    September 7, 2015 at 10:10 pm

    Are you 100% sure it’s been used?

    I thought mobile content was totally down to the Bootstrap framework?

  • Mark Fail
    Mark Fail
    September 8, 2015 at 1:31 am

    @Mark, thanks.

  • Stephen
    Stephen
    September 13, 2015 at 10:39 am

    Why mobile version shows no information as same as in web .
    No customer would pay to see no information under them
    plus why search radius when changed shows multiples same result?

Viewing 5 posts - 1 through 5 (of 5 total)

Copyright © 2010-2020 PremiumPress Limited.

secure payments