Plans to Make Mobile Theme Customizable Like Demo?

Posted in: Newspaper
Post count: 37

When installing the Mobile Theme component for the first time, we were under the impression that it featured a customizable homepage with the option to place various blocks and other elements. This was based on the demo that’s available:

Mobile Demo 1
Mobile Demo 2
Mobile Demo 3

We were disappointed to find out that the homepage of the mobile theme is restricted to a “Featured” block at the top and recent posts on the bottom. Our site has repurposed the “Featured” category so for us, it doesn’t make sense to put these at the top of the page.

We’d really like to use the Mobile Theme for the obvious speed benefits but we will wait until more customization options are available for the homepage. Are there plans to offer this in future versions?

Ben Hinc
Executive Editor, The Apex

Post count: 23312

Hello ben.hinc,

Please notice that this is the default behaviour for our new mobile theme. So, if you want to change the sorting for your Big Grid from the top of the page, you will have to alter the code and change this sorting. Please notice that you will have to edit the front_page.php core file, like this -> http://screencast.com/t/9NmGhBcNXf and there you will have to add what type of sorting you like (latest, oldest_posts, popular, etc -> http://screencast.com/t/mnNV8esNFZcM) Please notice that the mobile theme has been designed to be very basic as structure, clear and very fast and because of this we will do not introduce more customization options in this regard. So, if you are unhappy with this, you will have to simply deactivate the mobile theme plugin and the theme will be automatically switched to the normal mobile responsive.

Thanks for your understanding!

Post count: 37

Thank you so much for the response. I’d like to change the sorting of the grid to recent, so this helps. I’d also like to replace the recent list of articles under that with blocks for specific sections like those that are found on the main theme. Is there a way to edit the code to accomplish this as well?

Example:

<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span><?php echo $td_list_custom_title; ?></span></h4>
<?php }

$posts_per_page = get_query_var('posts_per_page') ? get_query_var('posts_per_page') : 10;

// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
);
query_posts($wp_query_args);

locate_template('loop.php', true);
echo td_page_generator_mob::get_pagination();
wp_reset_query();
?>
</div>

Example: could I take the above code and limit the query to a single category? And, repeat the code several more times to create additional blocks?

Thanks again.

Post count: 37

Quick follow up:

I’ve managed to edit the code above to show the category I want and customized it appropriately. However, when I duplicate the code to make a second “block,” I only get a header with no posts. Is it written in such a way that it can’t be duplicated? Here is my modified code:

<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span>IndyCar</span></h4>
<?php }

// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => 5,
'paged' => $paged,
'category_name' => 'indycar'
);
query_posts($wp_query_args);

locate_template('loop.php', true);
wp_reset_query();
?>
</div>

<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span>Sports Car</span></h4>
<?php }

// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => 5,
'paged' => $paged,
'category_name' => 'sportscar'
);
query_posts($wp_query_args);

locate_template('loop.php', true);
wp_reset_query();
?>
</div>

Thank you.

Post count: 23312

Hello ben.hinc,

Unfortunately, we cannot offer custom work as we work hard on the development, updates, fixes, and support. Please notice that you want to display more levels in our theme and you are not aware of the steps which you needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
You can always get a freelancer from sites like this -> http://studio.envato.com/ if you don’t know how to do it yourself.

Thanks for your understanding!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.