This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

timworx

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Author
    Replies
  • in reply to: Filtering sidebar width is snuffing out other sidebar layouts #19649
    timworx
    Participant

    Ahhhhhh. I was wondering how it would alter it without replacing it. I just left off on “must be WP magic”.

    That makes a hell of a lot more sense. You’re the man.

    in reply to: Filtering sidebar width is snuffing out other sidebar layouts #19639
    timworx
    Participant

    Older 1.x version.

    Sorry, that problem was very, very vague. I did some more testing so I can better describe exactly what it’s doing. It’s removing them from the options of `Sidebar Layouts` in both the Builder AND on the Pages. It makes it so that I have the `Default Sidebar Layout` as the only option.

    Changing the default sidebar in the `Theme Options` does change the default sidebar. However, with a left sidebar for example, it leaves out the necessary `span4` from div.fixed-sidebar.left-sidebar.

    I’ve tried it with plugins deactivated and with all other added filter and actions in functions.php commented out and the code pertaining to the column resizing (as listed above) is the only thing with an effect.

    Do I have to recreate the entire layout array rather for the filter?

    in reply to: Block buttons not blockin' #17919
    timworx
    Participant

    Hmm. It’s definitely the latest version of the plugin – although I don’t know that Jumpstart is, though. That must be the problem.

    in reply to: Nesting Columns of the Same Type #16953
    timworx
    Participant

    Possibly – I might be missing a simpler way to do this. Linked below is an example image.
    AFAIK you would need nested [one_half] tags to achieve this, as they are percentage based and the only way to get them to line up to is to have the left div also contain the quarter sized divs (which are really half of the half sized div, ergo they’d require [one_half])

    I may be missing a much simpler way to do this, though. If so, let me know!

    http://s28.postimg.org/inn6gfsul/example.gif

    in reply to: Slides are Missing After Domain Name Change #11571
    timworx
    Participant

    Scratch that, since I found them I’ll just reinstate them manually. Piece o’ cake.

    in reply to: Slides are Missing After Domain Name Change #11570
    timworx
    Participant

    Ok, just found them in the database. Now how do I get WP to recognize them again?

    in reply to: Button to open menu not working #11076
    timworx
    Participant

    Ah, now there’s a new highlight in my troubleshooting abilities.

    Yip, that’s it. It had been commented out during development while doing other troubleshooting. I guess I wasn’t too worried about going back to it since it was in the child theme and assumed it was my own code from sites past.

    Thanks @Bluenotes!

    in reply to: Button to open menu not working #10994
    timworx
    Participant

    Sorry, thought I had a link in there.
    http://celebratelifehalfmarathon.com/

    I’m seeing the error in chome, not sure about other browsers.

    in reply to: Adding Classes to Column Shortcodes #9660
    timworx
    Participant

    Awesome!
    Thanks, Jason.

    in reply to: Multiple Post Grids #6183
    timworx
    Participant

    Pure genius.

    I figured it was causing me to break it, I just couldn’t figure out why or how.

    Once again, you’re the man. This framework is seriously going places.

    in reply to: Multiple Post Grids #6121
    timworx
    Participant

    Hmm, not quite. It really is a peculiar situation.
    I’m not having trouble with query correct data, at this point, I’m having display issues.

    Here’s my code:

    function portfolio_set_global_post_id(){
    	global $portfolio_post_id;
    	$portfolio_post_id = get_the_ID();
    }
    add_action( 'wp', 'portfolio_set_global_post_id' );
    
    // Modify the template that displays post grids for the portfolio page only 
    function portfolio_template_grid( $parts ) {
    	global $portfolio_post_id;
    	if ($portfolio_post_id == 66) {
        $parts['grid'] = 'portfolio';
        return $parts;
    }}
    add_filter( 'themeblvd_template_parts', 'portfolio_template_grid' );

    This is ID 66.
    Currently, I have the same code in my custom grid template (content-portfolio.php) as the content-grid.php page.

    It is doing exactly what it’s supposed to be doing, working perfectly on the page that it is supposed to be working on. BUT it is breaking both regular and paginated grid posts on any other page.

    A page with the regular grid post is missing the <div class="grid-item column grid_4"><div class="article-wrap"> wrap, it’s going straight to <article>. It’s also displaying the tags. So, it appears to be using “single” or content.php as the template.

    Here is where it gets confusing for me, but may be the giveaway for you:
    If I comment out add_filter( 'themeblvd_template_parts', 'portfolio_template_grid' ); to deactivate the custom template, the paginated posts now work! Even though the custom grid template and framework content-grid.php have the exact same code.

    I’m a roll with breaking things, got a wrecking ball for me?

    in reply to: Multiple Post Grids #5978
    timworx
    Participant

    Yeah, it’s rather odd indeed. Here’s what I found. I have this code in place to modify the grid on one page:

    function my_template_parts( $parts ) {
    	if (is_page(66)) {
        $parts['grid'] = 'portfolio';
        return $parts;
    }}
    add_filter( 'themeblvd_template_parts', 'my_template_parts' );

    and it works perfect, everything displays fine, it’s the “Our Work” page. The only difference is that the “Read More” button is removed and the title isn’t hyperlinked.

    The interesting part is that even if you have the same exact code in my custom content-portfolio.php file as content-grid.php, it breaks the layout, like here. So, first bare in mind that the custom template should not be applying to this page and ONLY be applying to id 66, or the Our Work page.

    But, assuming that code is somehow messed up and applying to all pages with the grid, it still breaks it even when the “custom” template has the same content as the original grid template. This isn’t something that I really need to deal with right now, however, I plan to extensively use the framework and could certainly see it becoming a conundrum.

    Any clues?

    in reply to: Multiple Post Grids #5923
    timworx
    Participant

    No, I definitely haven’t. I did do edits on a new custom content template for grids on another page. However, the regular ones are displaying fine, it’s just the paginated. You can see the shortcoded grid_posts (the layout builder grid_posts, non paginated, works fine too) working properly here.

    I also compared my grid files to that of another child theme, all checks out.

    in reply to: Multiple Post Grids #5896
    timworx
    Participant

    After saying I had it fixed, I soon realized that you couldn’t have the offset and unlimited posts. hah. So you predicted my next run-in. For now, setting the posts_per_page to a very high number solves the issue.

    Strangely, I tested paginated grid posts in the layout builder and for some reason wound up with them as full-width (as if permanently stuck to 100%).
    In the css there is no <div class="grid-item column grid_3">
    <div class="article-wrap">
    like the regular grid_row has. I’m using the stretch child theme as a base, if that helps narrow anything down.

    It goes straight from grid_row to article. You can see it here.

    in reply to: Multiple Post Grids #5873
    timworx
    Participant

    Edit: Figured out how to apply a specific grid template. Used:

    function portfolio_grid_template( $parts ) {
    	if (is_page(66))
    		$parts['grid'] = 'portfolio';
    	return $parts;
    }
    add_filter( 'themeblvd_template_parts', 'portfolio_grid_template' );

    I love this Framework. The documentation is quite good too. Isn’t your framework, at least v2, fairly new? That makes good documentation even more amazing.

Viewing 15 replies - 1 through 15 (of 20 total)