Przeglądaj źródła

Eliminate unnecessary padding in 'More' link

Removed initial change to wrap more link in a `<p>` tag.
Change 'more' link position from 'absolute' so that it would lay out as
expected.
Removed the 'more link' paddings and unnecessary size to allow the flow
to layout as expected.
Jason Crist 4 lat temu
rodzic
commit
8f2c976c19
2 zmienionych plików z 0 dodań i 11 usunięć
  1. 0 8
      button-2/functions.php
  2. 0 3
      button-2/style.css

+ 0 - 8
button-2/functions.php

@@ -116,14 +116,6 @@ function button_2_adjusted_content_width() {
 }
 add_action( 'template_redirect', 'button_2_adjusted_content_width', 0 );
 
-/** 
- * Wrap more-link inside a paragraph 
- */
-function button_2_more_link($more) {
-    return '<p>'.$more.'</p>';
-}
-add_filter('the_content_more_link','button_2_more_link');
-
 /**
  * Register widget area.
  *

+ 0 - 3
button-2/style.css

@@ -1453,13 +1453,10 @@ td#next {
 }
 
 a.more-link {
-	position: absolute;
 	z-index: 1;
 	bottom: -32px;
 	display: block;
 	width: 100%;
-	height: 124px;
-	padding-top: 100px;
 	transition: .3s;
 	font-family: Lora, Garamond, serif;
 	font-weight: bold;