-
AuthorPosts
-
April 19, 2016 at 10:51 pm #617749
Hi, I have a site that has their blog using the grid layout with featured images. We want to also add some separate posts for jobs listings in another area of the site. We created separate categories for them, but don’t want them to display in the grid format or use any photos, but in a simple listings format instead. Is this possible with Enfold? Thanks!
April 20, 2016 at 12:18 am #617780Hey janetgot!
You can try using magazine element to display your certain category. An example can be seen here – http://kriesi.at/themes/enfold/homepage/home-v10-magazine/ :)
Cheers!
YigitApril 20, 2016 at 8:20 pm #618657Thank you for this suggestion, I’m playing with it now, but in your example, it shows excerpts, but on mine, it just shows the Title and date? How do I tell it to show the excerpt?
April 20, 2016 at 9:39 pm #618723I found the answer to my question above in the forum posts, however, I do have one more question. Is it possible to link directly to a specific category result in the magazine format from a page? For instance, on one page, it would have an icon box for all the jobs in Sales, which would open the new page with the Sales jobs active, but people could still click on the other categories. Does that make sense?
If I inspect the page with the tabs, I see this:
<span class=”inner_sort_button”><span>Engineering</span></span>But would want the link to occur from another page, and when I try it, it ignores the sort feature.
April 23, 2016 at 3:22 pm #620547Hi!
Could you please explain this a little bit more? A screenshot or an example link of what you’re trying to do will help.
Best regards,
IsmaelApril 26, 2016 at 11:37 pm #622576Sure, we have a careers page with 4 icons for each department. Then all the job listings are posts, in categories to match the department. The icons are linked to a page with a magazine element, so that people can sort by departments. I would like each of the icon links to go to that page, with the appropriate filter active already. Does that make sense? I included screenshots if that helps.
April 29, 2016 at 1:55 pm #624419Hi!
Add this in the functions.php file:
// auto trigger add_action('wp_footer', 'ava_custom_script'); function ava_custom_script() { ?> <script> (function($){ function getQueryParams(qs) { qs = qs.split("+").join(" "); var params = {}, tokens, re = /[?&]?([^=]+)=([^&]*)/g; while (tokens = re.exec(qs)) { params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); } return params; } var $_GET = getQueryParams(document.location.search); $(window).load(function() { switch($_GET['msort']) { case 'engineering': $('.engineering_sort_button').trigger('click'); break; case 'marketing': $('.marketing_sort_button').trigger('click'); break; case 'operations': $('.operations_sort_button').trigger('click'); break; case 'sales': $('.sales_sort_button').trigger('click'); break; } }); })(jQuery); </script> <?php }
The icon link should look like this:
http://mysite.com/linktopage/?msort=engineering
You should add the “msort” query string plus the name of the category as value.
Best regards,
IsmaelApril 29, 2016 at 7:56 pm #624740PERFECT! Thank you so much!
April 30, 2016 at 8:24 am #624894 -
AuthorPosts
- The topic ‘Different layout for blog layout and certain category layout?’ is closed to new replies.