Jump to content
php.lv forumi

Vajadzīga CSS palīdzība iekš WordPress


osC

Recommended Posts

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Jā. Pēc keyworda "title" man atrada 1758 vārdus. Visos izbūros cauri un neko neatradu. Varbūt palaidu garām? hmm, nu nezinu...

Nu tu meklēji pēc “title“?

Link to comment
Share on other sites

atzīšos, esmu stulbs. ko ar to xpath elementu darīt?

1) links nepareizs, pareizais ir http://jzstudio.lv/komanda
2) šeit ir xpath uz to A elementu, kura title tiek attēlots: //*[@id=portfolioList]/li[2]/div/a
elementāri atver pārlūkā dev tools un ieselekto elementu, kurš attēlo title.

Also, #primary uzliec "overflow: hidden;" un viss būs kārtībā.

Link to comment
Share on other sites

Rekur šitādus rezultātus izmeta. Kautkā neredzās tas title. :/

			<li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(),  MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>">
				<div class="shadow">

									<li data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo max_get_post_lightbox_class(); ?><?php if( get_option_max('image_show_fade') != "true") { echo(" no-hover"); } ?>">
										<div class="shadow">
											<?php echo '<a href="' . get_permalink() . '" title="' . strip_tags(get_the_title()) . '"><img src="' . $_imgUrl .'" alt="' . strip_tags(get_the_title()) . '" /></a>'; ?>
										</div>

						<li data-id="id-<?php echo $post->ID ?>" class="item <?php echo max_get_post_lightbox_class() . " "; ?><?php echo $_term_classes . " "; ?><?php if( get_option_max('image_show_fade') != "true") { echo("no-hover"); } ?>">
							<div class="shadow">

 

Pameklē templeitos pēc: <div class="shadow">

šitas div tags tieši iewrapo to a tagu, kuru meklē. Šitā būs vieglāk atrast

Link to comment
Share on other sites

Otrajā blokā ieskaties title="' . strip_tags(get_the_title()) . '"

Kaut gan tas nav īstais a tags. Taviem meklējamajiem a tagiem ir vēl atribūti data-link, data-rel

 

 

 

Pirmajā blokā esi atradis div class="shadow", iekopē kodu, kas seko aiz <div class="shadow">

Esi jau pavisam tuvu

Edited by Kasspars
Link to comment
Share on other sites

Otrajā blokā ieskaties title="' . strip_tags(get_the_title()) . '"

Kaut gan tas nav īstais a tags. Taviem meklējamajiem a tagiem ir vēl atribūti data-link, data-rel

 

 

 

Pirmajā blokā esi atradis div class="shadow", iekopē kodu, kas seko aiz <div class="shadow">

Esi jau pavisam tuvu

hmm, interesanti, bet izdzēšot visu rindu

<div class="shadow">
											<?php echo '<a href="' . get_permalink() . '" title="' . strip_tags(get_the_title()) . '"><img src="' . $_imgUrl .'" alt="' . strip_tags(get_the_title()) . '" /></a>'; ?>
										</div>

nekas nenotiek. :/

Link to comment
Share on other sites

Ok, rekur pāris rinas pēc pirmā bloka:

				<?php
					// get the gallery item
					max_get_post_custom_image(get_post_thumbnail_id(), false, false, $image_size);

					if($itemCaption === true) {

						// check if caption option is selected
						if ( get_option_max( 'image_show_caption' ) == 'true' || get_option_max( 'image_show_caption' ) == 'always'  ) {
						?>

						<div class="item-caption">
							<strong class="title"><?php echo get_the_title() ?></strong><br />
							<?php
								if(!$hideExcerpt) {
									echo strip_tags(get_the_excerpt());
								}
							?>
						</div>
Link to comment
Share on other sites

Es tak saku tas nav īstai a tags

 

Iekopē kodu kas seko aiz šitā. Tur jābūt īstajam a tagam

 

<li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(), MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>">
                
<div class="shadow">

Edited by Kasspars
Link to comment
Share on other sites

Es tak saku tas nav īstai a tags

 

Iekopē kodu kas seko aiz šitā. Tur jābūt īstajam a tagam

 

<li data-time="<?php the_time('m/d/Y H:i') ?>" data-modified="<?php the_modified_time('Y-m-d H:i') ?>" data-menuorder="<?php echo $post->menu_order ?>" data-id="id-<?php echo get_the_ID() ?>" class="item <?php echo $lightbox_class ?> <?php echo $_term_classes; ?><?php if( get_option_max( 'image_show_caption' ) == "always") { echo(" show-title"); } ?><?php if( get_option_max('image_show_fade') != "true" || get_post_meta(get_query_var('page_id'), MAX_SHORTNAME.'_disable_post_lightbox', true) == 'true' || get_post_meta(get_the_ID(), MAX_SHORTNAME.'_photo_item_type_value', true) == 'disable_link' ) { echo(" no-hover"); } ?>">

                <div class="shadow">

augstāk :)

Link to comment
Share on other sites

Šo te izmeta:

		// get the gallery item 
		max_get_post_custom_image(get_post_thumbnail_id());

	        if($itemCaption === true) {

					// get the gallery item
					max_get_post_custom_image(get_post_thumbnail_id(), false, false, $image_size);

					if($itemCaption === true) {
function max_get_post_custom_image($imgID, $p_id = false, $return = false, $img_size = 'full' ) {

Neizskatās ka būtu kautkas uz taga "a" pusi

Labi, tagad nomeklē šito

function max_get_post_custom_image

Link to comment
Share on other sites

 

Šo te izmeta:

		// get the gallery item 
		max_get_post_custom_image(get_post_thumbnail_id());

	        if($itemCaption === true) {

nejauši iemetās pēdējie 2 rezultāti tavā quote :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...