Text/Link behind Text
-
Hi,
thx for the great Plugin.My problem, i want to add some text or/and a link behind the title in the fancybox, but i can`t find the right position respectively row. Can you help me please?
Thx a lot
-
Didn’t follow the question. Can you do a screen mock-up of what you require?
yes, ok:
http://www.rbontour.de/some-more-text/-
This reply was modified 9 years, 2 months ago by
MrRonTour.
Are you looking to add an icon, like an external link icon, or something similar?
You can do this using Custom CSS. I have outlined the approach here.
In your case you could do something like:
#fancybox-title a:after { content: url('http://link-to-your-icon.png'); }Alternatively if you wanted to display the same text, you could use:
#fancybox-title a:after { content: 'See in Flickr'; }Cool, great, thank you.
I want add a link. Because of law here in germany we must add a link to called “impressum”. This link must be on each site.Thank you,
but this didn’t work for me – very sad :/Do you have a page I can look at to troubleshoot?
Only for text with a link to flickr this is working fine. But i need one or two new links linking to pages on my site.
With lightbox:
http://www.rbontour.de/fotoset-luebeck-002/That would be a lot harder to do. While you could do it by editing photonic.js, my preferred solution would be the following, using a child theme’s functions.php:
- Go to the file photonic/layouts/Layout_Default.php, line 201.
- After this line, add:
$title_markup = apply_filters('photonic_lightbox_title_markup', $title_markup);
I will add this to the core code, so the changes that you make in the following steps will be in effect. - Then, add a filter in your child theme’s functions.php:
add_filter('photonic_lightbox_title_markup', 'my_prefix_modify_photonic_title'); - Next, create a function in your child theme’s functions.php:
function my_prefix_modify_photonic_title($title) { return $title.'<a href="http://my-new-link">Impressum</a>'; }
But before you do that – my understanding is that “Impressum” doesn’t have to be defined for every photo. My knowledge is based on Wikipedia, so I might obviously be wrong, but what I understood is that it is okay for the “Impressum” to be defined just at the web page level.
Didn’t work with Theme Soho, white site – but it is ok, I’ll try something other. A link to the impressum must be on every site (also responsive) and the visitor has to see this link. There are max 2 klicks allowed to reach this.
For the lightbox there is no court decision yet. It’s hard to be a german webmaster š
Thank you very much, your coffee is on the way š-
This reply was modified 9 years, 2 months ago by
MrRonTour.
The “white page” is typically due to improper PHP code. E.g. a missing
;, or an extra space or empty line after the last%>in your functions.php file. See here.Another try

Can you tell me what code you used in your function?
-
This reply was modified 9 years, 2 months ago by
The topic ‘Text/Link behind Text’ is closed to new replies.