wordpress上のテーマエディターにてaタグのスタイルを変更したいのですが反映されず、原因をご教示頂けないでしょうか。
aタグは<?php previous_post_link?>と<?php next_post_link?>を使って出しております。
chrome上で検証するとuser agent stylesheetで設定されてしまっているので、こちらが原因でしょうか?
phpファイル及cssファイルを下記致しますのでご確認頂けますと幸いです。
[index.php]
<?php if(have_posts()): while(have_posts()): the_post(); ?><article <?php post_class(); ?>> <h1><?php the_title(); ?></h1> <div class="postinfo"> <time datetime="<?php echo get_the_date("Y-m-d") ?>"> <i class="far fa-clock"></i> <?php echo get_the_date(); ?> </time> <span class="postcat"> <i class="fas fa-folder"></i> <?php the_category(","); ?> </span> </div> <?php the_content(); ?> <div class="pagenav"> <span class="old"> <?php previous_post_link( '%link', '<i class="fas fa-chevron-left"></i> %title' ); ?> </span> <span class="new"> <?php next_post_link( '%link', '%title <i class="fas fa-chevron-right"></i>' ); ?> </span> </div>
[style.css]
.pagenav a{
padding: 5px 10px;
border: solid 1px #cccccc;
border-radius: 10px;
color: #666666;
font-size: 12px;
text-decoration: none
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/01 23:08
2020/02/02 01:30