Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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!

    #617780

    Hey 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!
    Yigit

    #618657

    Thank 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?

    #618723

    I 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.

    #620547

    Hi!

    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,
    Ismael

    #622576

    Sure, 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.

    #624419

    Hi!

    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,
    Ismael

    #624740

    PERFECT! Thank you so much!

    #624894

    Hi!

    No problem. Let us know if you need anything else. We’ll try to help as best as we can. :)

    Regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Different layout for blog layout and certain category layout?’ is closed to new replies.