Forum Replies Created
-
AuthorPosts
-
Jared WilliamsMemberJanuary 29, 2013 at 9:30 am in reply to: Agent Press, Featured Listing, missing/misplaced comma #15971Jared WilliamsMember
How comfortable are you will modifying PHP in the functions.php file?
Basically, the comma is in the wrong place in the Featured Listings Widget filter...
You currently have:
add_filter( 'agentpress_featured_listings_widget_loop', 'agentpress_featured_listings_widget_loop_filter' ); /** * Filter the loop output of the AgentPress Featured Listings Widget. * */ function agentpress_featured_listings_widget_loop_filter( $loop ) { $loop = ''; /** initialze the $loop variable */ $loop .= sprintf( '<a href="%s">%s</a>', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) ); $loop .= sprintf( '<span class="listing-price">%s</span>', genesis_get_custom_field('_listing_price') ); $custom_text = genesis_get_custom_field( '_listing_text' ); if( strlen( $custom_text ) ) $loop .= sprintf( '<span class="listing-text">%s</span>', esc_html( $custom_text ) ); $loop .= sprintf( '<span class="listing-address">%s</span>', genesis_get_custom_field('_listing_address') ); $loop .= sprintf( '<span class="listing-city-state-zip">%s %s, %s</span>', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') ); $loop .= sprintf( '<a href="%s" class="more-link">%s</a>', get_permalink(), __( 'View Listing', 'apl' ) ); return $loop; }
This line is incorrect:
$loop .= sprintf( '<span class="listing-city-state-zip">%s %s, %s</span>', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') );
so we need to make it:
$loop .= sprintf( '<span class="listing-city-state-zip">%s, %s %s</span>', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') );
Hope this helps!
Jared WilliamsMemberTry changing line 1050 in your style.css to this:
#dsidx-listings li.dsidx-listing { display: list-item; float: left !important; height: 400px !important; text-align: center !important; list-style-type: none; width: 50% !important; margin: 0 0 15px 0; overflow: hidden; position: relative; }
Jared WilliamsMemberJanuary 22, 2013 at 3:22 pm in reply to: Removing comma on AgentPress Featured Listing Widget #13847Jared WilliamsMemberJanuary 18, 2013 at 12:35 pm in reply to: Removing comma on AgentPress Featured Listing Widget #12896Jared WilliamsMemberOk, sorry...it looks like the code got messed up a bit on submitting...
basically look inside the functions.php file and remove this:
$loop .= sprintf( '%s %s, %s', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') );
January 18, 2013 at 12:34 pm in reply to: Removing comma on AgentPress Featured Listing Widget #12895Jared WilliamsMemberThe code is located inside the functions.php file. Look for this:
add_filter( 'agentpress_featured_listings_widget_loop', 'agentpress_featured_listings_widget_loop_filter' );
/**
* Filter the loop output of the AgentPress Featured Listings Widget.
*
*/
function agentpress_featured_listings_widget_loop_filter( $loop ) {$loop = ''; /** initialze the $loop variable */
$loop .= sprintf( '%s', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) );
$loop .= sprintf( '%s', genesis_get_custom_field('_listing_price') );
$custom_text = genesis_get_custom_field( '_listing_text' );
if( strlen( $custom_text ) )
$loop .= sprintf( '%s', esc_html( $custom_text ) );
$loop .= sprintf( '%s', genesis_get_custom_field('_listing_address') );
$loop .= sprintf( '%s %s, %s', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') );$loop .= sprintf( '%s', get_permalink(), __( 'View Listing', 'apl' ) );
return $loop;
}
You need to remove:
$loop .= sprintf( '%s %s, %s', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') );
So, your new code should look like this:
add_filter( 'agentpress_featured_listings_widget_loop', 'agentpress_featured_listings_widget_loop_filter' );
/**
* Filter the loop output of the AgentPress Featured Listings Widget.
*
*/
function agentpress_featured_listings_widget_loop_filter( $loop ) {$loop = ''; /** initialze the $loop variable */
$loop .= sprintf( '%s', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) );
$loop .= sprintf( '%s', genesis_get_custom_field('_listing_price') );
$custom_text = genesis_get_custom_field( '_listing_text' );
if( strlen( $custom_text ) )
$loop .= sprintf( '%s', esc_html( $custom_text ) );
$loop .= sprintf( '%s', genesis_get_custom_field('_listing_address') );$loop .= sprintf( '%s', get_permalink(), __( 'View Listing', 'apl' ) );
return $loop;
}
Hope this helps!
Jared WilliamsMemberI would recommend checking out the actual Codex on WordPress.org regarding the Gallery - http://codex.wordpress.org/Gallery_Shortcode
The link="file" just says that you are linking the thumbnails to the file, not the attachment page that is created for all media.
If you want a different size, then register a new image size in your functions.php file and swap out "featured" for the new name that you have chosen.
add_image_size( 'new-thumb', 220, 180, true );
Then add size="new-thumb".
Jared WilliamsMemberJared WilliamsMemberBill Erickson published a great article on How To Build A Genesis Child Theme. He uses the front page function.
There are so many ways to do this and I would start by reading this. Bill is awesome and knows his stuff!
Jared WilliamsMemberMost Genesis Child Themes that display a custom home page contain a home.php file in the theme folder. Create that file and add your code.
Additionally, you may be able to set the homepage to a static page that already contains your Slideshow. Look under Settings --> Reading
January 16, 2013 at 9:33 am in reply to: Change background color of primary and secondary nav bar in News theme #12302Jared WilliamsMemberTry this:
Find line 481 for your Sub Nav
#subnav ul {
float: left;
width: 100%;
}and add your background color. So, if you wanted white you would add:
#subnav ul {
float: left;
width: 100%;
background: #fff;
}Then look at line 351 for the Primary:
#nav {
background: url(images/bg-dark.png);
border-left: 1px solid #d5d5d5;
border-right: 1px solid #d5d5d5;
clear: both;
color: #fff;
font-family: 'Oswald', arial, serif;
margin: 0 auto;
overflow: hidden;
text-transform: uppercase;
width: 960px;
}Replace the background elements with the color or image that you would like.
Hope this helps
Jared WilliamsMemberJanuary 16, 2013 at 8:34 am in reply to: Support Tickets are a JOKE!!!! Really, Studiopress??? #12276Jared WilliamsMemberRobin,
You are acting like StudioPress did this on purpose.
Genesis 1.9 (aka: site destroyer)
I mean, really? These guys (and gals) work very hard on making Genesis the best framework around...and when the issue came with 1.9 they quickly released a fix with 1.9.1.
Sometimes these things happen and are out of anyone's control. The Copyblogger Team and Support Staff at StudioPress are great and make support a priority. (Unpaid moderators, as well!). I use just about every product under the Copyblogger Umbrella and have always received outstanding support.
With that being said, StudioPress is quickly approaching 100,000. That's a lot of support for a small team. The same goes for WooThemes. It can be very hard to provide the level of support needed for that many members but I feel that StudioPress has kept up their reputation.
I can completely understand your frustration but attacking the Support Team is a little extreme. And threatening to bash StudioPress is even worse if they don't respond within your time frame.
Nick's response was perfect. They received your Ticket and responded in a timely fashion. It is possible that maybe you did not receive the response. I have Copyblogger white listed and sometimes miss his emails...
Customization support has never been guaranteed in the forums. There are many talented developers who take time to help with these things but ultimately have their own day jobs.
Before upgrading it's always best to test out your theme. While StudioPress does their very best to make sure that upgrading is as seamless as possible, things happen. That's just the web for you.
I try and keep a local dev site or on a subdomain for testing new releases to make sure there aren't any issues. This goes for all WP updates, Genesis releases and plugin updates.
I hope you get your issue resolved because I understand your frustration. But please be nice to the Staff 🙂
Jared WilliamsMemberJared WilliamsMemberOn you individual pages look under "Layout Settings". There you can define a Body Class.
So, if your page was an About page that you wanted styled differently, you could add "about" (no quotes) in the Body Class field, then style it accordingly using:
.about #inner { background: url(images/bg-top.jpg) repeat-x top; overflow: hidden; padding: 0; }
Jared WilliamsMemberJared WilliamsMemberYou should be able to get RETS access from your Broker or your Local MLS provider. For instance, I have worked with Realtors in Chapters that use Solid Earth for MLS.
They contact the System Admin and request RETS access for their account. It is normally granted that day, and they are given a username and password. We then pass that info on to an IDX provider such as Diverse Solutions.
Will Greater Fort Lauderdale Realtors not give you RETS access?
Jared WilliamsMemberDecember 28, 2012 at 3:27 pm in reply to: Use Featured Listings in Bottom Left Section on Homepage #8011Jared WilliamsMember -
AuthorPosts