Is it possible to change the name of the Visit Site Button on a certain work page and leave the others as is? I want to re-name that button on certain work pages to say something else.
Thxs, i'm new to wordpress templates; how do I find the ID? Also once I give you the ID will I be able to just apply that change to any work page?
Also is it possible to have the button trigger a light box that displays the linked webpage? if so do I just need to a light box widget and put the code into the admin section that ask for the internet code?
if(strlen($temp)){
$ids = array(777,982,983); //here you add your IDs
if(in_array(get_the_ID(), $ids)){ //this will show up if current work is one of this special
echo '<a class="project-site" href="'.$temp.'">'.__fe('Do not :-) Visit Site').'</a>';
}
else{ //normal scenario
echo '<a class="project-site" href="'.$temp.'">'.__fe('Visit Site').'</a>';
}
}
Thxs, Just so that i'm clear i will update i.e. $ids = array(777,982,983); //here you add your IDs to $ids = array(xxx,xxx,xxx); //here you add your IDs; with my work page IDs filling in the xxx,xxx etc...
Also where do I make the update to the name of the button? and can I change the color of the Visit site button globally another color?
Yeah, just read code and you will see comments and name of button to change. "Do not :-) Visit Site" is string for your special cases and "Visit Site" is your normal string, so change them as you wish.
For color use this custom CSS:
a.project-site{ background-color: #000; /* normal color */ } a.project-site:hover{ background-color: #ff0000; /* hover color */ }
Comments
It is possible to hard code such thing for certain works, we only need to know their IDs.
With regards.
Also is it possible to have the button trigger a light box that displays the linked webpage? if so do I just need to a light box widget and put the code into the admin section that ask for the internet code?
Thxs for the help...
post=981
and 981 is your ID. When you have ID, you change such code in single work line ~45 to With regards.Also where do I make the update to the name of the button? and can I change the color of the Visit site button globally another color?
Thxs for the help...
"Do not :-) Visit Site" is string for your special cases and "Visit Site" is your normal string, so change them as you wish.
For color use this custom CSS: With regards.