Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Hi Matt,
thank you for your reply!
As far as I figure out how it works I will post it here.
Other suggestions welcome.
Best regards,
Oliver
Hello all,
I am building a dual language website. Englisch (root) German (subfolder) no subdomain.
1. Is it neccessary to implement the hreflang on each page? If yes, what is the best way to do that?
2. Is using a 2nd xml sitemap a better and easier choice?
Like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.example.com/</loc>
<xhtml:link
rel="alternate"
hreflang="de"
href="http://www.example.com/de/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://www.example.com/"
/>
</url>
<url>
<loc>http://www.example.com/de/</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://www.example.com//"
/>
<xhtml:link
rel="alternate"
hreflang="de"
href="http://www.example.com/de/"
/>
</url>
Other ideas???
Thanks in advance,
Oliver
Thank you all for your suggestions :-)
Best bregards,
Oliver
Hi all,
what plugins for wordpress do you think are useful e.g SEO, connect to facebook, twitter, instagram..., caching and so on?
thx in advance.
Best regards,
Oliver
Thank you Ben,
you are right! I closed it with ?> and everything works fine :-)
Best regards,
Oliver
Hi all,
I added a script to the wordpress functions.php and cannot login anymore (script is working). I think I placed it wrong:
functions.php:
<?php
if ( is_admin() ) {
require get_template_directory() . '/inc/theme_admin.php';
}
require get_template_directory() . '/inc/theme_setup.php';
require get_template_directory() . '/inc/theme_enqueue.php';
require get_template_directory() . '/inc/theme_options.php';
require get_template_directory() . '/inc/theme_media.php';
require get_template_directory() . '/inc/theme_menus.php';
require get_template_directory() . '/inc/theme_widgets.php';
require get_template_directory() . '/inc/theme_posts.php';
require get_template_directory() . '/inc/cleaner_gallery.php';
function enqueue_custom_script() {
if( wp_script_is('jquery','done') ){ ?>
<script>
(function($) {
$("ul.menu a[href='" + window.location.pathname + "']").addClass("selected").parents('li').children().addClass('selected');
})( jQuery );
</script>
<?php }}
add_action('wp_footer', 'enqueue_custom_script', 22);
?>
Please help :-)
Best regards,
Oliver
SOLVED by deleting the last ?>
BEST EVER!!!!!
Thank you so much Matt, Rod, Ben and others for your great product, troubleshooting, ideas, advice and and and - since the first day!
Keep it up! :-)
Best regards,
Oliver
Hi Matt,
thanks again :-)
It is still a test page ;-) and if you come out with a suggestion I would be glad to test it out :-)
Best regards,
Oliver
Hi Daniel,
I am with other things right now, so the projects site will be untouched until i have a solution for the hover thing ;-)
Best regards,
Oliver
Hi Rod,
thank you for your reply!
I played with filters before but I dont like them.
I like to mouse over the album (thumbnail OR description) and just like to change the albums description color from white background/black description to black background/white description.
Thanks again :-)
best regards,
Oliver
Hi Daniel,
thank you very much but unfortunately your css doesn't work for me, the whole album frame gets black and the color of the album description is not changing.
Best regards,
Oliver
Hi Rod,
following works for me if mouse over the album description:
.the__albumSet figure a :hover {
background-color: rgba(0, 0, 0, 1);
color: #ffffff;
}
Do you have any idea how to css, that mouse over the thumbnail changes the bkg color and font color of album description?
I didnt find a solution for now.
Best regards,
Oliver
Rod,
I do custom css but can not solve the problem.
Changing bkgcolor on hover
".the__albumSet figure a:hover {
background-color: rgba(0, 0, 0, 0.08);
}"
is no problem, but changing the color of the album title/description doesnt work:
".the__albumSet figure a:hover {
background-color: rgba(0, 0, 0, 0.08);
color: #ffffff;
}"
Best regards,
Oliver
Hi Rod,
thanks for trying it out on your device! :-)
And in general thumbs up and thank you all for your outstanding advice and support!!!
Next question ;-) :
I cannot find out how to change the album info color (title/description) by a:hover.
seems to be blocked by the color value in resurce.php
.the__albumSet figcaption {
background-color: rgba(0, 0, 0, 0);
color: #000000;
padding: 0.5rem 12px;
text-align: left;
}
If I delete "color: #000000;" in Firefox development thing it works but I dont know where to find the css file in the backlight folder
Any suggestions?
Best regards,
Oliver
Hi Matt,
thank you so much!!! Works great for me now with following :-)
CSS:
.album-breaker {
box-sizing: border-box;
clear: both;
display: block;
padding: 0 12px;
text-align: left;
width: 100%;
max-width: 100%;
}
.the__albumSet figure:nth-child(1n+1) {
clear: none;
}
.the__albumSet figure {
display: inline-block;
float: left;
}
.the__albumSet .albums {
text-align: left;
}
Is it possible to assign the haiku class to the h2, and if, how???
Best regards,
Oliver
Hi Rod,
both is working perfect :-)
Thank you very much!
Best regards,
Oliver
The only question left (for now):
Matt's script is working perfect in the classic and descriptive layout!
In the iconic layout - which I prefer to use - it results in a "damaged" layout like if you change Centering Method in the classic layout to Javascript.
Is it possible to run the script with the iconic layout?
Thank you Matt for your quick response.
Your script is working perfect in the classic and descriptive layout!
In the iconic layout - which I prefer to use - it results in a "damaged" layout like if you change Centering Method in the classic layout to Javascript.
Is it possible to run your script with the iconic layout?
And by the way: How can I combine
function ttg_scripts( $style, $path ) {
echo '
<script>
var albumBreaker = function( place, heading ) {
var place = $(".albums").find("figure:nth-child(" + place + ")");
var markup = $("<h2/>").attr({
class: "album-breaker"
});
markup.html(heading);
place.before(markup);
}
albumBreaker( 1, "LIGHTING DESIGN");
albumBreaker( 10, "ARCHITECTURE");
albumBreaker( 15, "CITY");
albumBreaker( 19, "TRAVEL");
</script>
';
return false;
} // END
with
function ttg_scripts( $style, $path ) {
echo <<<SCRIPT
<script>
$(function() {
$("ul.menu a[href='" + window.location.pathname + "']").addClass("selected").parents('li').children().addClass('selected');
});
</script>
SCRIPT;
} // END
???
Best regards and thx again!
Oliver
Hi Matt,
wow, thank you, looks very interesting :-)
I did copy/paste the css and php. Without editing anything it results in:
Unexpected error: Cannot redeclare ttg_scripts() (previously declared in /mnt/webi/b1/57/51715457/htdocs/backlightoliverblumcom/backlight/custom/phplugins/phplugins.php:144) in phplugins.php on line 175
... you may need to change the markup or place in the function to match the source code." ??????
What do I have to edit, that it will work?
Best regards,
Oliver
Thanks again Rod,
I'll try the hard coding first ;-)
Best regards,
Oliver
Hello all,
is it possible to insert more than one Album Set on a page? And if, how?
or
is it possible to insert titles?
For example:
TITLE
5 Albums
TITLE
next 5 Albums
and so on...
thx in advance.
Oliver
thank you Matt for your reply
Hi Matt,
the masthead/navigation should not be in the slideshow. If the slideshow operates on a layer it might possibly work to position it behind or maybe below the masthead/navigation :-/???
Best regards,
Oliver
Hi all,
is it possible to always have the Masthead/Navigation above the Photoswipe Large Image Presentation, and if, how to do that?
Thx in advance,
Oliver