Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 Re: Backlight 3 Support » Google Breadcrumbs issues » Today 05:15:29

I can reproduce it on my site and reported it.

For my site, I changed how breadcrumbs are created for non-gallery pages and this fixes the errors reported by google. But obviously, this doesn't change anything for galleries.

#3 Re: Backlight 3 Support » Display discrepancies with different browsers » 2020-05-23 02:09:03

Most likely a cache issue. It has a black background for me, both in Safari and Chrome.

#4 Re: Backlight 3 Customization » Modal image stay on top » 2020-05-22 00:45:23

Nico, did you look into using popups that are directly supported by Backlight? Rod has an article on how to use and style them: https://ttg-tips-and-tricks.barbeephoto … pup-boxes/

#5 Re: Backlight 3 Customization » Strange behavior » 2020-05-21 06:17:42

Two opening and three closing divs..... </divs>

This one is too early:

<p>A complete resume is available by cliking the red icon.</p></div>

#6 Re: Backlight 3 Customization » Album set thumbnail behavior » 2020-05-21 02:42:13

I looked at some of your custom CSS and you are setting items that can be done in the Backlight album. I would recommend that you set everything that you can in Backlight Designer and only use custom CSS for things that can't be done in Backlight Designer.

Instead of lifting code from another site, try to find the proper settings in Backlight Designer. It is really worth your time to have a clean implementation!

To get rid of the line, you can use

.albums figcaption {
	border-top: 1px solid #000000;
}

#7 Re: Backlight 3 Customization » Album set thumbnail behavior » 2020-05-21 02:22:11

Sorry, I kind of missed same images... obviously republishing doesn't help in this case...

#8 Re: Backlight 3 Customization » Album set thumbnail behavior » 2020-05-21 01:49:18

Maybe the thumbnail size is just off by a pixel? In the english site, I would republish all images. And check that 'republish only thumbnails' is not checked in publisher settings.

#9 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-18 09:37:35

Markus wrote:

ok, I see sad

I use the album_top hook to display the found photos in the photo search.
And I use the album_bottom hook for the "back-link" to the previous album

Then I guess this probably won't work?

You can use something like

function album_top(){
    if ($this->dlp_page_match('/backlight/search')){
      echo ' whatever you want to display on search albums';
   } else {
      echo ' whatever you want to display on regular albums';
   }
   return true;
}

The 'dlp_page_match' function is described over on my blog: https://lab.danielleu.com/blog/page-specific-php-code/

#10 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-18 09:29:59

For those following this thread and are running in some errors with the original code, I have improved the JSON fetching function with some additional error handling. More on my blog at http://lab.danielleu.com/blog/using-bac … hp-take-2/

#11 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-18 00:38:18

tomowensphoto wrote:

In an effort to assess if everything is up to date for my WP installation I ran aSite Health Status report in WP and the following was listed about the REST API -
The server cannot find the requested page tomowens.openpoint.co.uk/blog/wp-json/wp/v2/types/post?context=edit (port 443)
That sub-directory 'wp-json' does not exist in my installation. Is this a possible cause of the issue I have?

'wp-json' is a virtual directory like '/backlight/api'. Therefore it is normal that you don't see it. I think you get the error because the URL doesn't contain a post ID.

The Wordpress REST API is the JSON interface for Wordpress. This is not related to the Backlight JSON API which provides a JSON interface for Backlight.

I think the issue is that either .htaccess or your host is blocking access to the Backlight JSON API. Do you have any type of firewalls active? I would look at the cpanel of your host.

#12 Re: Backlight 3 Support » WordPress and Contact forms » 2020-05-17 00:11:00

rod barbee wrote:

no

well....maybe? Using the new JSON API perhaps?

Nope. The JSON API provides access to album and image data. That's it.

#14 Re: Backlight 3 Customization » multi language support » 2020-05-15 07:02:09

Pierre, you have the labels reversed. When the page is in english mode, you really want to show 'EN' and not 'FR':

html[lang="en"] .fa-globe:before {
   content: "FR";
}

html[lang="fr"] .fa-globe:before {
   content: "EN";
}

#15 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 03:25:56

tomowensphoto wrote:

Thanks Daniel,
At least the images went well with your lab colour scheme!

big_smile What a nice coincidence! How many of us are now turning towards photographing flowers...

#16 Re: Backlight 3 Customization » multi language support » 2020-05-15 03:24:40

Look at the quotes you were using! You need a plain text editor!

#19 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 02:17:55

tomowensphoto wrote:

Hi Daniel,
Line 49 has that code.
Your link takes me to a 404 grey and pink page

So I really don't understand how private posts work in WP big_smile big_smile big_smile

Here we go:
private_testing.png

Did you do any custom .htaccess magic on your site?

#20 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 01:55:28

Hmm... this works for me: http://lab.danielleu.com/blog/testing/ smile

Please have a look at line 49 in '/blog/wp-content/theme/yourtheme/inc/theme_backlight_shortcode.php'

It should look like this:

$response = json_decode(request("https://.... deleted by admin...../" . $album), true);

#21 Re: Backlight 3 Customization » multi language support » 2020-05-15 01:41:18

aebolzan wrote:
Daniel Leu wrote:

I see that it is working now for you, Agustin smile

seems that I am in another channel smile  I don't see any change in my PC, still the globe!

Agustin

UPDATE!!:  I see the change in my IPad but not in my Windows PC!, or the Android mobile...so there is some kind of issue related to the operating system

I think it is just a caching issue where the browser hasn't updated your latest CSS changes yet.

#22 Re: Backlight 3 Customization » multi language support » 2020-05-15 00:54:28

aebolzan wrote:
rod barbee wrote:

Agustin,

I see that you've uploaded the css. There's a syntax error. You have:

html[lang="es"].fa-globe:before{
   content: "ES";
}
 
html[lang="en"].fa-globe:before{
   content: "EN";
}

There needs to be a space before .fa-globe. Change the code so it looks like this:

html[lang="es"] .fa-globe:before{
   content: "ES";
}
 
html[lang="en"] .fa-globe:before{
   content: "EN";
}

still not working....any ideas?

Agustin

I see that it is working now for you, Agustin smile

#23 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 00:47:59

Hi Tom, you can make a post private so it doesn't show up in your feed, but you are still able to share the link so we can take a guess what's going on.

#24 Re: Backlight 3 Customization » multi language support » 2020-05-14 11:03:02

Your first statement is not closed. It should be

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;
}

Do you notice the closing bracket?

#25 Re: Backlight 3 Customization » multi language support » 2020-05-14 10:58:35

aebolzan wrote:

Daniel,

I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...

Agustin

P.D. this is what my css file contains:

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;

/* Language switching */

html .fa-globe:before{
   font-family: Arial;
   font-weight: 700;
   font-size: 0.875em;
}   

html[lang="es"].fa-globe:before{
   content: "ES";
}

html[lang="en"].fa-globe:before{
   content: "EN";
}


#language-selector ul {
   width: 75px;
}

Do you have a link to your page?

Board footer

Powered by FluxBB