Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)
  • Thread Starter Rob_Huska

    (@rob_huska)

    @mazedulislamkhan This is important to my client to have it fixed ASAP. Can you please advise when this update will be released, or please help in providing some sort of solution in the meantime?

    Thread Starter Rob_Huska

    (@rob_huska)

    Well that would explain why I couldn’t find it… Do you have any sort of fix that I can give my client in the mean time that I could throw into the theme? I do have a custom slug set and cannot remove that. Also, any idea of a timeframe for release?

    Ok I am on version 7.6.1 and I am not seeing the SEO menu structured like @jerparx mentions… I have the Search Appearance menu under SEO. When I go in there I have tabs for a bunch of things, but the 2 that I would assume to use for CPT Archive metadata would be either “Content Types” or “Archive”. Well Content Types appears to just be the template for singles of all the post types and Archives only has things for Author and Date archives.

    So, now where do I go to edit the meta title and description for a CPTs main archive page?

    Yes, i have the has_archive => true when I register the post type. And I have a specific archive-my_post_type.php file that is working. I just have no access to edit the meta data, or cannot find it…

    Thanks,
    Rob

    Thread Starter Rob_Huska

    (@rob_huska)

    Email sent.

    Thread Starter Rob_Huska

    (@rob_huska)

    Thanks Tijmen, it isn’t really the “quality” of addresses that I am worried about, I know you can’t guarantee that they are right. I just want to make sure that if I import proper information, that the lat/long is going to get auto-populated. Because that is data I don’t have. Does that make sense?

    Thread Starter Rob_Huska

    (@rob_huska)

    So if we purchase this it is guaranteed to do what we need? I only say this because we had already invested into WP All Import a few years ago, so purchasing another import plugin is going to be a tough sell without some sort of guarantee.

    Thanks,
    Rob

    Thread Starter Rob_Huska

    (@rob_huska)

    Here is my listing template code:

    
    add_filter( 'wpsl_listing_template', 'custom_listing_template' );
    function custom_listing_template() {
    
        global $wpsl, $wpsl_settings;
    
    	ob_start(); ?>
    
    		<li data-store-id="<%= id %>">
    			<div class="wpsl-store-location">
    				<ul class="wpsl-store-info">
    					<li><h2><?= wpsl_store_header_template( 'listing' ); ?></h2></li>
    					<li>
    						<i class="icon--location"></i>
    						<a href="https://maps.google.com/maps?saddr=&daddr=<%= address %>,<%= city %>,<%= country %>" target="_blank">
    							<%= address %>
    
    							<% if ( address2 ) { %>
    								<span><%= address2 %></span>
    							<% } %>
    
    							<span><?= wpsl_address_format_placeholders(); ?></span>
    						</a>
    					</li>
    
    					<?php if ( !$wpsl_settings['hide_country'] ) { ?>
    						<li><%= country %></li>
    					<?php } ?>
    
    					<?php if ( $wpsl_settings['show_contact_details'] ) { ?>
    						<% if ( phone ) { %>
    							<li><i class="icon--phone"></i> <span class="wpsl-phone"><%= formatPhoneNumber( phone ) %></span> <span class="call">Call for Product Availability</span></li>
    						<% } %>
    						<% if ( fax ) { %>
    							<li><i class="icon--fax"></i> <%= fax %></li>
    						<% } %>
    						<% if ( email ) { %>
    							<li><i class="icon--mail"></i> <%= email %></li>
    						<% } %>
    					<?php } ?>
    
    				</ul>
    				<?= wpsl_more_info_template(); ?>
    
    			</div>
    			<div class="wpsl-direction-wrap">
    				<%= thumb %>
    
    				<?php if ( !$wpsl_settings['hide_distance'] ) { ?>
    					<%= distance %><?= esc_html( wpsl_get_distance_unit() ); ?>
    				<?php } ?>
    
    				<%= createDirectionUrl() %>
    			</div>
    		</li>
    		
    	<?php $listing_template = ob_get_clean();
    
    	return $listing_template;
    }
    

    (I converted everything to use an output buffer instead of a concatenating variable, it is just easier for me to see syntax)

    Where are you saying I could add that?

    Thread Starter Rob_Huska

    (@rob_huska)

    Yes, you can. But you need to get the place_id first, which you can get from the address/coordinates. Here is how I was getting the place_id:

    
    var request = {
    		'address': response[index].address + ' ' + response[index].city + ', ' + response[index].state + ' ' + response[index].zip
    	};
    
    geocoder.geocode( request, function( response, status ) {
    	if ( status == google.maps.GeocoderStatus.OK ) {
    		console.log(response[0].place_id);
    	}
    });
    

    I did this in your wpsl-gmap.js file inside the $.each loop while you are gathering the locations. Around line @1207. Again I am hoping to not modify your code, but add my own js in my own files if at all possible.

    • This reply was modified 7 years, 4 months ago by Rob_Huska.
    Thread Starter Rob_Huska

    (@rob_huska)

    So I was able to get the pins to count with some “hacky” CSS/SCSS…

    	#wpsl-gmap {
    		.gm-style > div:first-child > div:first-child > div:nth-child(4) {
    			counter-reset: pin-counter;
    			> div {
    				&:after {
    					counter-increment: pin-counter;
    					content: counter(pin-counter);
    					font-size: 1rem;
    					position: absolute;
    					left: 0;
    					top: 0;
    				}
    				&:nth-child(1),
    				&:nth-child(2) {
    					&:after {
    						content: none;
    					}
    				}
    			}
    		}
    	}
    

    Not sure if this will always work, so if you have a better solution that would be great! Thanks

    Thread Starter Rob_Huska

    (@rob_huska)

    Bummer, I was really hoping to do this without modifying your core plugin.

    Thread Starter Rob_Huska

    (@rob_huska)

    So, I have been able to number the list itself by using a css counter. But I cannot seem to do the same thing for the markers since there are no specific classes on them. Any way to make that happen?

    • This reply was modified 7 years, 4 months ago by Rob_Huska.
    Thread Starter Rob_Huska

    (@rob_huska)

    Here is the image, thank!

    Custom Map

    are you using this plugin for Multi Step Forms? If so, there is a shortcode just for this. It is explained in the “Additional Tags” section of the description.

    [multiform "your-name"]

    • This reply was modified 7 years, 11 months ago by Rob_Huska.

    You don’t necessarily need to put it in the checkbox itself. Here is what I have done.

    <label>
        [checkbox terms "Yes"]
        <span>I agree to the <a href="/terms-conditions/" target="_blank">Terms & Conditions</a></span>
    </label>

    The label wrapped around the entire thing allows the text to check the box and also allows the link to work.

    Just use CSS to style everything the way you need it then. You can even hide the “Yes” that would show by default with:

    span.wpcf7-list-item-label {
        display: none;
    }

    Hope this helps!

    Thread Starter Rob_Huska

    (@rob_huska)

    There has to be something that can be done here. Any help would be great, thanks!

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