Skip to content

Instantly share code, notes, and snippets.

@genesis16
Created December 8, 2022 23:49
Show Gist options
  • Save genesis16/867776b5ee14886b5556bb977b1669fe to your computer and use it in GitHub Desktop.
Save genesis16/867776b5ee14886b5556bb977b1669fe to your computer and use it in GitHub Desktop.
Change DOM element used in Multiple places
jQuery(document).ready(function( $ ){
var portfolio_title = $( ".qodef-ps-info-holder.qodef-ps-info-sticky-holder h3.qodef-ps-title" ).text();
if(portfolio_title == '100 years fitout'){
$( ".qodef-ps-info-holder.qodef-ps-info-sticky-holder h3.qodef-ps-title" ).html( "<h3 class='h3.qodef-ps-title'>DOCTORS OF SOUTH MELBOURNE</h3>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment