[Resolved] WP Tiles 1.0 add custom classes or ids to specific tiles and more
I’ve just started using this plugin as it really did something I’ve been trying to recreate for some time without any luck.
But I’m having some problems and hoping i can get some help and clarification.
I’ve inserted WP tiles directly into my theme with this.
<?php the_wp_tiles( array('grids'=>'tabtarget', 'posts_query'=>'category=3', 'small_screen_grid'=>'Mobile', 'breakpoint'=>'768', 'padding'=>'0') ); ?>
First off i’ve created a custom grid, which is as follows
Which i’ve then loaded into the array.
Small grid and breakpoint does not seem to work. Its supposed to load the tiles into this setup
But it still uses the same grid system regardles of window size.
So my first question will be how do I get it fall back to the mobile version on the breakpoint?
All tiles when loaded have all the specific styles directly coded into the html so I’ve had to use !important tag to override most of the styles.
The container of which the tiles have been put in is 380px, but it seems to just extend further than that regardless of the fact. So i’ve had to use !important tag to override it.
Is there a better solution for this?
I had finally gotten the WP tiles to show my 3 latest post and I used the tiles ID to style them.
I then tried to add a new post with the category i’ve specified and suddenly it loaded all 4 instead of just 3 (which is the grid I’ve drawn in the grid designer).
Not only that, but instead of rotatin the 3 previous “news” around so the first of the 4 would be gone I had thought the tiles would reuse the id’s and fill into them with the new data.
But how do I give ex. the A tile a specific id and the B and C?
I really really hope you can help me out as I would really like to use the plugin.
I’ve taken the theme site out of development mode, until I’ve solved the issues so a early alpha build of the theme is availabe to see here.
- The topic ‘[Resolved] WP Tiles 1.0 add custom classes or ids to specific tiles and more’ is closed to new replies.