Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • Each of my grids only show 3 items. To accommodate the removal of the featured news from grid 2, I load 12 items into grid 2. Then the jQuery runs on window load. Then, assuming I’ll have more than 3 items in grid 2 after the jquery, I use CSS to hide any if they exist with display:none on a:nth-childs 4 – 12.

    In a custom.js file (among other things that also run on window load) I have the below.

    (function($){
        $(window).load(function() {
    		jQuery('#av-masonry-2 a.category-featured-news').remove();
    	});
    })(jQuery);

    No worries! If I document well enough, this would be manageable. I’ll give it a test and weigh the pros and cons vs my jQuery solution, which seems to be working. Since this is our intranet, I have more liberties knowing what the client side is, so I may default to jQuery.

    Thanks for looking into it for me though as always!

    Excellent! This is sounding pretty promising!

    I’m guessing this is true since you guys build this theme so smartly! But, will the av-helper-masonry.php file work the same way as my customized template builder elements if I drop it into the “shortcodes” folder for my child theme? So I don’t disrupt the core theme files which would override on an update?

    Good thought Josue. That takes care of part of it. It keeps it just to my homepage grids and not my news page grid, but still the challenge is that it filters both grids on the home page. I need it to filter only one grid on that page and leave the other alone.

    I took a “not-so-pretty” approach to it and am using jQuery on page load to remove the grid posts that are flagged in “featured news” from grid 2. So now grid 1 shows featured news as set up in the masonry settings. Grid 2 shows all posts in the other categories and if one of them is also categorized in “Featured News” it is removed by jQuery.

    in reply to: Custom Template based on template-builder.php template #667490

    No problem! I wasn’t expecting a response within the hour. I figured it out shortly after posting. Thanks though.

    in reply to: Custom Template based on template-builder.php template #667408

    UPDATE: I did some testing and have now changed my template files to be exact duplicates of the “template-blank.php” with the special line that strips the header and footer: $avia_config[‘template’] = “avia-blank”; commented out.

    This looks to have fixed my issues!

    in reply to: Enfold Showcase #655892

    :) We were close to jumping ship, but were able to keep it.

    in reply to: Enfold Showcase #655493

    FINALLY, we posted our new corporate site. It’s been so close to ready for 4 months. Very excited to have it out there. Using the left nav on this one did bring to light some fun challenges for the responsiveness and making sure things were lining up in various screen sizes. We have a good amount of custom CSS as well as some jQuery in here for the full width submenus. All built on a child theme. Not only is enfold an insanely awesome theme, but the wealth of information and support around it and on this forum are amazing outlets to reach to for help.

    Check it out!
    http://www.wallick.com/

    in reply to: Set Author page template to the Blank Page template #452269

    I believe I’ve solved my needs by triggering the template code used in Blank Template and inserting it before get_header() in the author template. Seems to trigger what it needs to and does the trick!

    $avia_config['template'] = "avia-blank";

    in reply to: custom shortcodes in Accordion Title? #439967

    Pretty simple addition to not include an accordion!!
    I added an if statement around the output section in toggles.php. If the title of the post I am dynamically pulling in is “NOT IN USE” then it skips it. I can now template the page with 10 or however many placeholders in the accordion and then the user can edit as needed from the front end. Pretty cool.

    in reply to: custom shortcodes in Accordion Title? #439714

    Hey Rikard!

    No worries. I was able to find the solution for what I was trying to accomplish by the code above. I am setting up page sections as editable areas from the front end for my users. They update specific posts for the various page sections via some customizations I did to the plugin WP User Frontend. I wanted to have accordions and icon lists as options and the last snag was pulling in the post title via PHP to the accordion or icon element title. That code did the trick.

    Now I am going to experiment to see if I can use a similar filter to not load an accordion in the title is something like “NOT USED” for example. So I can template the page with say 10 accordion items and they can “turn off” or hide one if they use that key word.

    in reply to: custom shortcodes in Accordion Title? #439420

    I found a workaround for my specific situation if it is helpful to anyone else. The goal was to pull the title of a post into the accordion toggle title so I just added this code in the toggles.php file:

    if(is_numeric($toggle_atts['title']))
    			{
    				$toggle_atts['title'] = get_the_title( $toggle_atts['title'] );
    			}

    Then I use the post ID as the toggle title. Because shortcodes work fine in the content of the toggle, I pull that in using the plugin Posts in Page.

    in reply to: custom shortcodes in Accordion Title? #439256

    You can disregard this question. I believe I found another topic https://kriesi.at/support/topic/custom-tab-shortcode-to-allow-shortcodes-in-the-title-field/#post-428898 that mentions this is not possible. bummer!

    in reply to: Avia Layout Builder ability to use closing shortcode #386679

    Thanks Elliott!

    That’s what I thought. I’ve used both the debug view and also switched back to the default editor. The unfortunate part about doing either is that if I edit one of the elements that are within my manually added shortcodes and then save/publish the page, it over rides and removes my inserted piece, so I have to just be cautious of that and make sure I add it again.

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