Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
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
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
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!
Sorry. As simple as changing Disable Swift Page Builder on Theme Options > General Options. Duh.
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
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
-
Posted in: We hit Power Elite.