Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][PHP]Przesunięcie buttona
baycell
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.02.2013

Ostrzeżenie: (0%)
-----


Witam. Jestem tu nowy i jest to mój pierwszy post więc proszę o wyrozumiałość smile.gif
mam problem z przesunięciem przycisku (chciałbym go przesunąć do góry i w prawo)
to mój kod:

<?php if ( get_option('inkthemes_slidebuttontext3') !='' ) {?>
<a class="btn" href="<?php echo get_option('inkthemes_slidelink3'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext3'); ?></span></a>
<?php } else { ?>
<a class="btn" href="#"><span>Buy Now</span></a>
<?php } ?>

pracuję w wordpress i przerabiam na własne potrzeby szablon.
Gdybym czegoś nie podał to piszcie. Z góry dziękuję i pozdrawiam.

[EDIT]
Chciałbym dodać, że teraz ten przycisk jest całkiem niewidoczny ( schowany pod dwoma innymi).

Ten post edytował baycell 22.02.2013, 18:42:57
Go to the top of the page
+Quote Post
Ruch Radzionków
post
Post #2





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

Ostrzeżenie: (0%)
-----


a może podasz też kod css


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post
baycell
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.02.2013

Ostrzeżenie: (0%)
-----


to jest caly plik z tym kodem
  1. <?php
  2. /*
  3. /**
  4.  * The main front page file.
  5.  *
  6.  * This is the most generic template file in a WordPress theme
  7.  * and one of the two required files for a theme (the other being style.css).
  8.  * It is used to display a page when nothing more specific matches a query.
  9.  * E.g., it puts together the home page when no home.php file exists.
  10.  *
  11.  */
  12. ?>
  13. <?php get_header(); ?>
  14. <!--Start slider wrapper-->
  15. <div class="slider_wrapper">
  16. <div id="slides">
  17. <div id="slide-box">
  18. <div class="slides_container col-full" >
  19. <!--Start Slide-->
  20. <div class="slide" >
  21. <!-- // End $type IF Statement -->
  22. <div class="entry">
  23. <?php if ( get_option('inkthemes_slideheading1') !='' ) { ?>
  24. <h2><?php echo get_option('inkthemes_slideheading1'); ?></h2>
  25. <?php } else { ?>
  26. <h2>Top Section Heading</h2>
  27. <?php } ?>
  28. <?php if ( get_option('inkthemes_slidedescription1') !='' ) { ?>
  29. <p><?php echo get_option('inkthemes_slidedescription1'); ?></p>
  30. <?php } else { ?>
  31. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
  32. <?php } ?>
  33. <?php if ( get_option('inkthemes_slidebuttontext1') !='' ) {?>
  34. <a class="btn" href="<?php echo get_option('inkthemes_slidelink1'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext1'); ?></span></a>
  35. <?php } else { ?>
  36. <a class="btn" href="#"><span>Buy Now</span></a>
  37. <?php } ?>
  38. <?php if ( get_option('inkthemes_slidebuttontext2') !='' ) {?>
  39. <a class="btn" href="<?php echo get_option('inkthemes_slidelink2'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext2'); ?></span></a>
  40. <?php } else { ?>
  41. <a class="btn" href="#"><span>Buy Now</span></a>
  42. <?php } ?>
  43. <?php if ( get_option('inkthemes_slidebuttontext3') !='' ) {?>
  44. <a class="btn" href="<?php echo get_option('inkthemes_slidelink3'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext3'); ?></span></a>
  45. <?php } else { ?>
  46. <a class="btn" href="#"><span>Buy Now</span></a>
  47. <?php } ?>
  48. </div>
  49. <?php if ( get_option('inkthemes_slideimage1') !='' ) { ?>
  50. <div class="images"><img title="slideimage1" src="<?php echo get_option('inkthemes_slideimage1'); ?>" alt="" /></div>
  51. <?php } else { ?>
  52. <div class="images"><img title="Top Section" src="<?php echo get_template_directory_uri(); ?>/images/iphone-slide.png" alt="" /></div>
  53. <?php } ?>
  54. </div>
  55. <!--End slide -->
  56. </div>
  57. <!-- /.slides_container -->
  58. </div>
  59. <!-- /#slide-box -->
  60. <div class="clear"></div>
  61. </div>
  62. </div>
  63. <!--End slider wrapper-->
  64. <?php get_footer(); ?>


do tego mam dodać plik styli css ?

Ten post edytował baycell 23.02.2013, 12:14:32
Go to the top of the page
+Quote Post
Ruch Radzionków
post
Post #4





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

Ostrzeżenie: (0%)
-----


po pierwsze używaj np.
[code] albo [php] masz nad trescia postu. a po 2 to daj też kod css


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post
baycell
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.02.2013

Ostrzeżenie: (0%)
-----


Mam nadzieję, że op to wam chodziło smile.gif
style.css

plik był za długi więc wstawiłem go na chomikuj.pl

Już mam, poradziłem sobie.
Dzięki Ruch Radzionków za podpowiedź z plikiem css.
Go to the top of the page
+Quote Post
Ruch Radzionków
post
Post #6





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

Ostrzeżenie: (0%)
-----


użyj np.
padding
albo
margin
powinno pomóc


--------------------
Pomogłem daj pomógł
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 18:48