• Resolved MrRonTour

    (@mrrontour)


    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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Didn’t follow the question. Can you do a screen mock-up of what you require?

    Thread Starter MrRonTour

    (@mrrontour)

    yes, ok:
    Behind the title
    https://www.rbontour.de/some-more-text/

    • This reply was modified 7 years, 12 months ago by MrRonTour.
    Plugin Author Sayontan Sinha

    (@sayontan)

    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('https://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';
    }
    Thread Starter MrRonTour

    (@mrrontour)

    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.

    Thread Starter MrRonTour

    (@mrrontour)

    Thank you,
    but this didn’t work for me – very sad :/

    Plugin Author Sayontan Sinha

    (@sayontan)

    Do you have a page I can look at to troubleshoot?

    Thread Starter MrRonTour

    (@mrrontour)

    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:
    https://www.rbontour.de/fotoset-luebeck-002/

    Plugin Author Sayontan Sinha

    (@sayontan)

    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:

    1. Go to the file photonic/layouts/Layout_Default.php, line 201.
    2. 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.
    3. Then, add a filter in your child theme’s functions.php:
      add_filter('photonic_lightbox_title_markup', 'my_prefix_modify_photonic_title');
    4. Next, create a function in your child theme’s functions.php:
      function my_prefix_modify_photonic_title($title) {
          return $title.'<a href="https://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.

    Thread Starter MrRonTour

    (@mrrontour)

    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 7 years, 12 months ago by MrRonTour.
    Plugin Author Sayontan Sinha

    (@sayontan)

    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.

    Thread Starter MrRonTour

    (@mrrontour)

    Another try

    Plugin Author Sayontan Sinha

    (@sayontan)

    Can you tell me what code you used in your function?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Text/Link behind Text’ is closed to new replies.