wesmed
Forum Replies Created
-
@missveronicatv ok, the member.php is up to date now. However, every other template still is out of date… I haven’t customized any other templates. I don’t know how to fix this.
@missveronicatv I tried but now Ultimate Member is saying that every single template is out of date!!!! I’ve read the “Fixing Outdated Ultimate Member Templates” but can’t get it to work. This is extremely frustrating
Forum: Everything else WordPress
In reply to: How to edit CSS for Ultimate Member directory filtersGood call, I just posted it to the link you provided. Thanks Steven!
@missveronicatv It worked! Thank you for all of your assistance.
@missveronicatv I just noticed that in my most recent post, the second code block converted the bold and italicized text to code. I was trying to make my edits stand out more. Anyways, below is the correct code that I would greatly appreciate feedback on:
<?php $long_title = ''; if ( $type == 'select' ) { if( $filter == 'infrastructure' ) { $long_title = 'title="Does the property include any of the following equipment or infrastructure? (Select all that apply)"'; } if( $filter == 'county' ) { $long_title = 'title="Select the county your property located."'; } if( $filter == 'Irrigation' ) { $long_title = 'title="Which type(s) of irrigation systems does your property have? Check all that apply to your listing"'; } }?>
Hello, I just returned from my honeymoon so I apologize for the absence! @missveronicatv thank you so much for your assistance. I was able to create the folders and copied the “members.php” template into a directory within my theme.
The file structure is now: wp-content/themes/Divi/ultimate-member/templates/members.php
Below is the code example you originally provided (just for a quick reference), and below that, you will find my modifications bolded and <span style=”text-decoration: underline;”>underlined</span> text according to how I understood your instructions. Would you be so kind as to see if I am understanding your steps properly?
<?php $long_title = ''; if ( $type == 'select' ) { if( $filter == 'gender' ) { $long_title = 'title="Long title for gender"'; } if( $filter == 'country' ) { $long_title = 'title="Long title for country"'; } }?>
<?php $long_title = ''; if ( $type == 'select' ) { if( $filter == '<span style="text-decoration: underline;">Infrastructure</span>' ) { $long_title = 'title="<span style="text-decoration: underline;">Does the property include any of the following equipment or infrastructure? (Select all that apply) </span>"'; } if( $filter == '<span style="text-decoration: underline;">County</span>' ) { $long_title = 'title="<span style="text-decoration: underline;">Select the county your property located.</span>"'; } if( $filter == '<span style="text-decoration: underline;">Irrigation</span>' ) { $long_title = 'title="<span style="text-decoration: underline;">Which type(s) of irrigation systems does your property have? Check all that apply to your listing</span>"'; } }?>
___________________________________________________________________________________________________________________________
Also, I’m not exactly sure I understood the final step that you provided below:
“Finally include your?
$long_title
?content in the filter’s?div
(I’m not sure what the “filter’sdiv
” is)<div <?php echo $long_title?> class="um-search-filter um-<?php echo .....
“Are you referring to line 332? If so, my line 332 reads differently:
<div class="um-search-filter um-<?php echo esc_attr( $type ) ?>-filter-type <?php echo ( $i != 0 && $i%2 !== 0 ) ? 'um-search-filter-2' : '' ?>">
______________________________________________________________________________________________________________________________
I apologize for my ignorance/inexperience. I’ve been trying to figure it out myself but can’t seem to find the answers I need. Thank you SO much in advance and I’m eager to hear to hear your response.
Thank you for the response missveronica!! I’ve only recently started altering files/code, so pardon me for my ignorance, but once I go to wp-content/themes/{active_theme} (which is Divi), I cannot find /ultimate-member/templates in order to paste the members.php template. Am I missing something? Does it need to be in this exact order for locating the file?