Home › Forums › Theme support › Skyline Theme Adjustment Revisit
This topic contains 13 replies, has 2 voices, and was last updated by 7Theme Support 9 years, 3 months ago.
-
AuthorPosts
-
A few of questions related to revising format of text…
Here is what I see in the Featured Properties:
PA › Allentown Lehigh County
With the above, I have a few questions…
1. How do I get a comma to appear between the city (Allentown) and county (Lehigh County)?
Using the example above I’d like to see the following:
PA > Allentown, Lehigh County
2. What would I need to do to change the format to the following:
Allentown, Lehigh County, PA
3. What would I need to do to drop the “PA >” or in the case of #2 above drop the “, PA”
Here is what I see in the color address bar on detail page for a property:
2591 New Avenue, Allentown Lehigh County, PA 18103
Again, what I’d like to see is a comma after the city. What would I need to do to get the comma to appear?
Using the example above, I’d like to see:
2591 New Avenue, Allentown, Lehigh County, PA
Keeping in mind the original files have been modified to a degree… Further below are the current code snippets for both files.
Guidance greatly appreciated!
Many Thanks,
Denise
*******************************************************************************
Code Snippet for estate-entry.php:<?php if(get_the_term_list( get_the_ID(), 'estatecountry', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', "", " › " ))." › "; } ?> <?php if(get_the_term_list( get_the_ID(), 'estatecity', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', "", " " )); } ?> <?php if(get_the_term_list( get_the_ID(), 'estatecounty', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecounty', "", " "," " )); } ?>
Code Snippet for estate-single-default.php:
<?php if(get_the_term_list( get_the_ID(), 'estatekind', "", "" )!="") { $otype= strip_tags(get_the_term_list( get_the_ID(), 'estatekind', "", ", " )); } ?> <p class='object_details_line'> <strong><?php if($eadress) { echo "".$eadress; } ?></strong> <style="font-size:45px"><strong><?php if(get_the_term_list( get_the_ID(), 'estatecity', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', ", ", ", " )); } ?> <?php if(get_the_term_list( get_the_ID(), 'estatecounty', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecounty', "", " "," " )); } ?></strong> <strong><?php if(get_the_term_list( get_the_ID(), 'estatecountry', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', ", ", "" )); } ?></strong> <strong><?php if($ezip) { echo "".$ezip; } ?></strong>
Hi,
you can change this in the file “estate-single-default.php”, line 60 from this:
echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', "", " » " ));
to this:
echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', "", " ," ));
and line 66 from this:
echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', " » $ezip ", " " ));
to this:
echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', " ,$ezip ", " " ));
i could be missing something but this doesn’t seem to work for me. In fact I can’t seem to match it up to my version of the file. The code you provided I suspect, is from an unaltered version of the estate-single-default.php file. This does not match the code I currently have, which is why I included the code snippets in my earlier post. How do I alter the code snippets I provided to get the comma between the city name and the county name?
I’m having an issue getting from this in the color address bar under the main picture of the property detail page:
123 Main St., MyCity Northampton County, PA 12345
To this:
123 Main St., MyCity, Northampton County, PA 12345
And I’d like to change what displays under the pictures in the Featured Properties as follows:
From this:
PA › Allentown Lehigh County
To this:
Allentown, Lehigh County, PA
Or Potentially this:
Allentown, Lehigh County
Your insight/guidance is greatly appreciated.
Much Thanks!
DeniseAh, you changed the files already?
Ok, normally this is not covered by free support, because customizations are not included.
This time we can make an exception. This is the modified code from your first post for the estate-single-default.php file (your code from above + modification):
<?php if(get_the_term_list( get_the_ID(), 'estatekind', "", "" )!="") { $otype= strip_tags(get_the_term_list( get_the_ID(), 'estatekind', "", ", " )); } ?> <p class='object_details_line'> <strong><?php if($eadress) { echo "".$eadress; } ?></strong> <style="font-size:45px"><strong><?php if(get_the_term_list( get_the_ID(), 'estatecity', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', ", ", ", " )); } ?>, <?php if(get_the_term_list( get_the_ID(), 'estatecounty', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecounty', "", " "," " )); } ?></strong> <strong><?php if(get_the_term_list( get_the_ID(), 'estatecountry', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', ", ", "" )); } ?></strong> <strong><?php if($ezip) { echo "".$ezip; } ?></strong>
And I’d like to change what displays under the pictures in the Featured Properties as follows:
From this:
PA › Allentown Lehigh County
To this:
Allentown, Lehigh County, PA
For this you have to remove the following code from your estate-entry.php file:
<?php if(get_the_term_list( get_the_ID(), 'estatecountry', "", "" )!="") { echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', "", " › " ))." › "; } ?>
Hi,
Thank you for the coding suggestions…. It is really appreciated and worked perfectly! Much thanks for this!
I do have a question regarding the Header Menu….
I want to change the font size on the Header Menu only…. Not font sizes elsewhere. I know where to change the font type under Theme Options > Header > Navigation. But when I use the “px” field next to the font name all that does is change the height of the menu bar not the size of the font. What would need to do to change the font size in the header menu bar only?
Many Thanks!
DeniseIn addition to my post above… I just found another feature that presents the property street address in the wrong format for my needs. Having modified this several times in several files, I think I just need to know in which file this would be found.
I’ve added a slideshow to the home page using the “Slideshow” tab. I’m using the Allslider option and the slider type is Objects. I just noticed in the description text that appears on the left of each property photo that the address displays as:
postal code, city, street address
I’ll need to modify this to the format I need. I thought I had caught all the needed addressing changes. There must be another file somewhere that needs to be modified. In what file would I find this code?
An additional question related to using the slideshow…
I’ve tried several Allslider settings changes and have not been able to slow the speed of the transition from one photo to the next (I’m using the fade option). I’ve also tested to see which slide show (flex or cycle) is being used by turning off “Pause on Mouse Over” and “Pause on Mouse Over” still works. This leads me to think that “Allslider Settings” does not appear to control slideshow.
I looked at both the Visual and Text view of the home page and the code for the slideshow does not appear there so there’s no code (or shortcode) that I can modify to control how the slideshow performs.
How/where do I control the speed/transition rate, etc. for the slideshow?
Any/all guidance appreciated!
Much Thanks!
DeniseHi Denise,
for the menu you can also add this code in WordPress admin -> Appearance -> Theme Options -> General -> Extra CSS Content:
header .main-menu li a {
font-size: 20px;
}The file with the slider is “header_object_slider.php” / “header_featured_object_slider.php”, line 92 – 99.
The speed of the slideshow you can change on line 140, but you need to add this line between these to lines:
next: "#next_object", pause: true,
Please insert this code:
timeout: 4000,
(4000 is the time between to slides in milliseconds)
Hi…
Wanted to follow-up on the last set of updates that I had requested above.
The Extra CSS for the header menu did not seem to work. Even when I added the !important. I actually ended up find the code in the style.css file and changed it there.
Now the follow-on question to this… Where do I now change the size of the sub-menu (drop-down list) text under each main menu item. Right now that is much too small compared to the re-sized main menu items. I’m assuming this is also in the style.css file but was unsure of where to change the font size.
If you could provide the Extra CSS content for both the main and sub-menu items I would gladly go back and restore the style.css to the original (I have an unaltered backup copy).
As for controlling the speed of the object slider. The code you provided worked perfectly!
I was also able to re-order the address information in the header_object_slider.php file to display the city, county, state and zip as I needed.
Now a new question…. From what I can tell, it doesn’t appear that the contact form on the individual listing page (estate-single-default.php) is sending e-mail even thought I’m getting the success message. This could possibly be because I’m not assigning a specific agent to the listing. Is it possible to get this form to send to the main e-mail for the website (the e-mail address set under Theme Options for the Contact Page)?
One item to note with regard to the individual listing page contact form…. I also did try adding myself as the agent for a specific property (created a user ID for myself and included my e-mail address), but even then, I never received a message at my personal e-mail address.
Your input is very greatly appreciated!
Much Thanks!
DeniseHi,
A follow-up to my question about the property listing page contact form email…. Let me just say…. “operator error”. The test e-mails did get sent and once I figured out where the e-mail address was set, was able to update to appropriate e-mail address.
THe questions above regarding the Main menu and sub-menu drop-downs font sizes in my previous post are still valid. Any guidance you can provide is appreciated!
Many Thanks!
DeniseHi,
for the menu: can you add ‘ !important ‘ to the css code? This is the complete code:
header .main-menu li a {
font-size: 20px !important;
}Hi,
I had actually added the !important when I tried it previously, but it did not help. I just tried it again pasting your code above into the Extra CSS field. This does not seem to be overriding the style.css for me. I’m OK with updating the style.css if need be, but where would I then increase the font size of the sub-menu items (drop-down list). They now look out of proportion compared to the larger font on the primary menu items.
Thanks!
DeniseHi Denise,
this is strange, because the custom css should always overwrite the default stylesheet file. Can you send us the link to your website, then we can take a look at the source code and help you to solve the problem.
Hi,
Just a quick follow-up… I attempted to post a reply here in the forum last Saturday 6/20. The site was unavailable. As a result I sent information via info(at)7theme(dot)net e-mail address.
I’ll re-forward for reference.
Thanks!
DeniseHi Denise,
wrote you already via mail…
-
AuthorPosts
You must be logged in to reply to this topic.