added permalink anchor to titles, moved arrow in resources submenus to right

This commit is contained in:
jorge 2022-04-27 13:06:33 +02:00
parent c170e9da2f
commit b478f8787b
8 changed files with 37 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -44,10 +44,13 @@ main {
text-align: center; text-align: center;
} }
} }
.entry-content { section {
// padding: $global-padding $global-padding*2;
}
.entry-content,.omekas-entry-content {
@include breakpoint(small){ @include breakpoint(small){
@include xy-cell(12); @include xy-cell(12);
padding: $global-padding*2 ; padding: $global-padding*2 $global-padding/2 ;
margin:0 auto; margin:0 auto;
} }
@include breakpoint(medium){ @include breakpoint(medium){

View File

@ -49,11 +49,14 @@
li.menu-item-has-children { li.menu-item-has-children {
> a { > a {
&:after { &:after {
position: absolute;
right: 0;
margin-left: 10px;
margin-right: 2px;
border-bottom-width: 6px; border-bottom-width: 6px;
border-right-width: 0; border-right-width: 0;
border-right-style:solid; border-right-style:solid;
border-color: transparent transparent transparent $anchor-color-alt; border-color: transparent transparent transparent $anchor-color-alt;
margin-left: 10px;
} }
} }
} }

View File

@ -26,9 +26,12 @@ get_header(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header> <header>
<?php <?php
//https://developer.wordpress.org/reference/functions/permalink_anchor/
if ( is_single() ) { if ( is_single() ) {
permalink_anchor();
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
} else { } else {
permalink_anchor();
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
} }
?> ?>

View File

@ -44,10 +44,13 @@ main {
text-align: center; text-align: center;
} }
} }
.entry-content { section {
// padding: $global-padding $global-padding*2;
}
.entry-content,.omekas-entry-content {
@include breakpoint(small){ @include breakpoint(small){
@include xy-cell(12); @include xy-cell(12);
padding: $global-padding*2 ; padding: $global-padding*2 $global-padding/2 ;
margin:0 auto; margin:0 auto;
} }
@include breakpoint(medium){ @include breakpoint(medium){

View File

@ -49,11 +49,14 @@
li.menu-item-has-children { li.menu-item-has-children {
> a { > a {
&:after { &:after {
position: absolute;
right: 0;
margin-left: 10px;
margin-right: 2px;
border-bottom-width: 6px; border-bottom-width: 6px;
border-right-width: 0; border-right-width: 0;
border-right-style:solid; border-right-style:solid;
border-color: transparent transparent transparent $anchor-color-alt; border-color: transparent transparent transparent $anchor-color-alt;
margin-left: 10px;
} }
} }
} }

View File

@ -11,7 +11,11 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header> <header>
<h1 class="entry-title"><?php the_title(); ?></h1> <h1 class="entry-title">
<?php //https://developer.wordpress.org/reference/functions/permalink_anchor/;?>
<?php permalink_anchor(); ?>
<?php the_title(); ?>
</h1>
</header> </header>
<div class="entry-content"> <div class="entry-content">
<?php the_content(); ?> <?php the_content(); ?>

View File

@ -13,10 +13,11 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header> <header>
<?php <?php
//https://developer.wordpress.org/reference/functions/permalink_anchor/
if ( is_single() ) { if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' ); permalink_anchor();the_title( '<h1 class="entry-title">', '</h1>' );
} else { } else {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); permalink_anchor();the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
} }
?> ?>
<?php //foundationpress_entry_meta(); ?> <?php //foundationpress_entry_meta(); ?>