First of all you need to add css and javascript libraries of a lightbox script to your wordpress template’s header file. Then you should start to design your own gallery template to use that lightbox script.
You can also install one of wordpress’s lightbox plugins but you should know how that plugin works as you should design the gallery template file to work with that lightbox plugin!
Lightbox scripts (or plugins) usually works by adding an attribute to your thumbnail images in your gallery template file.
Thread Starter
zmrol
(@zmrol)
my fault, I did not know I had to add a “rel” tag to link, it’s ok now, lightbox work fine :)… but i have one more problem:
all the content is loaded under the gallery…I have a basic/”clean” (only index.php) template, no css… I tried a styleing but I can’t do it with css 🙁
You can use HTML Style tags in your index.php file or in your designed gallery template file.
For example:
<style type=”text/css”>
img {
border: 0;
}
</style>
Thread Starter
zmrol
(@zmrol)
mean that when I create a page or post and add some content (e.g text, h1 etc) and it look like this (in wp editor 🙂 ):
<h1>bla bla bla</h1>
[gallery theme="my" ids="47,46,45,44,43,42"]
…then h1 element will displays on bottom of site/gallery, not on top…
There must be a problem in your designed templates.
Please send me your designed gallery template and your index.php file so I can analyse the codes.
Thread Starter
zmrol
(@zmrol)
I use (for tests :)) a basic theme on fresh wp instalation.. I have 2 files:
– your theme file
and index.php and it look like this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><a>"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<?php endwhile; else: ?>
<p><?php _e('Brak wpisów.'); ?></p>
<?php endif; ?>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
… and i paste plugin code to my theme function.php…
btw. i tested on “twentythirteen” theme and I have this same problem 🙁