Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • in reply to: Content next to slider #145298
    DanielMcQ
    Member
    Post count: 7

    Hi Kyle,

    Ok, will do. Do you know if there is a short code for the Swift Slider (and that will work in a 2/3 column)? I’d rather use that than the Revolution slider.

    Thanks for your help,

    Daniel

    in reply to: Content next to slider #144522
    DanielMcQ
    Member
    Post count: 7

    Hi Mohammad,

    I can’t share the URL since it’s behind a login and is under development.

    Currently I can activate the slider via the “Page Slider Options” on the WordPress edit page screen. Are you saying not to use that option but instead use a shortcode for teh slider? If so, I imagine I’ll have to update the template since the layout won’t look the same.

    Thanks,

    Daniel

    in reply to: Filtering posts by user meta-data #142876
    DanielMcQ
    Member
    Post count: 7

    To answer my own question (and hopefully help somebody else who wants to do something similar):

    I added the following code to the SwiftPageBuilderShortcode_recent_posts class in the dante/swift-framework/page-builder/builder/shortcodes/recent_posts.php file. I added it in the content() method at line 33.

    if ($category==”target-local”){
    $user_id = get_current_user_id();
    $key = “location”;
    $single = true;
    $user_location = get_user_meta($user_id, $key, $single);
    $category_array = array($user_location);
    }else{
    $category_array = explode(“,”, $category_slug);
    }

    So, if I mark a post with a category that has a “target-local” slug and if the user’s “location” metadata matches a location subcategory, those posts will be shown.

    Swift Ideas team please let me know if this isn’t the best approach!

    in reply to: Swift Page Builder in child theme #140726
    DanielMcQ
    Member
    Post count: 7

    Sorry. As simple as changing Disable Swift Page Builder on Theme Options > General Options. Duh.

    in reply to: Category not showing up in Recent Posts element? #140716
    DanielMcQ
    Member
    Post count: 7

    Just to be clear, I’m trying to make a custom front page that lists only a subset of my posts (those marked with category “XYZ” for example).

    Daniel

    in reply to: nav menu background color #140709
    DanielMcQ
    Member
    Post count: 7

    Hi,

    I was trying to do something similar with the Dante theme, but using this custom css approach doesn’t work, even with an “!important”.

    When I load the page I can see the navigation background flash for a second with the background color I want (red), but then it’s quickly overwritten back to white.

    Thanks

    Daniel

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