Forum Replies Created
-
AuthorPosts
-
October 16, 2016 at 8:17 pm in reply to: multiple masonry grids – avoid duplicates when in multiple categories #699683
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);
October 14, 2016 at 6:29 pm in reply to: multiple masonry grids – avoid duplicates when in multiple categories #699257No 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!
October 13, 2016 at 7:00 pm in reply to: multiple masonry grids – avoid duplicates when in multiple categories #698866Excellent! 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?
October 1, 2016 at 10:13 pm in reply to: multiple masonry grids – avoid duplicates when in multiple categories #694254Good 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.
August 1, 2016 at 10:54 pm in reply to: Custom Template based on template-builder.php template #667490No problem! I wasn’t expecting a response within the hour. I figured it out shortly after posting. Thanks though.
August 1, 2016 at 6:59 pm in reply to: Custom Template based on template-builder.php template #667408UPDATE: 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!
:) We were close to jumping ship, but were able to keep it.
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/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";
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.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.
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.
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!
January 27, 2015 at 11:09 pm in reply to: Avia Layout Builder ability to use closing shortcode #386679Thanks 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.
-
AuthorPosts