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;
}
}
.entry-content {
section {
// padding: $global-padding $global-padding*2;
}
.entry-content,.omekas-entry-content {
@include breakpoint(small){
@include xy-cell(12);
padding: $global-padding*2 ;
padding: $global-padding*2 $global-padding/2 ;
margin:0 auto;
}
@include breakpoint(medium){

View File

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

View File

@ -24,11 +24,14 @@ get_header(); ?>
<?php //get_template_part( 'template-parts/content', get_post_format() ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<header>
<?php
if ( is_single() ) {
//https://developer.wordpress.org/reference/functions/permalink_anchor/
if ( is_single() ) {
permalink_anchor();
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
permalink_anchor();
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;
}
}
.entry-content {
section {
// padding: $global-padding $global-padding*2;
}
.entry-content,.omekas-entry-content {
@include breakpoint(small){
@include xy-cell(12);
padding: $global-padding*2 ;
padding: $global-padding*2 $global-padding/2 ;
margin:0 auto;
}
@include breakpoint(medium){

View File

@ -49,11 +49,14 @@
li.menu-item-has-children {
> a {
&:after {
position: absolute;
right: 0;
margin-left: 10px;
margin-right: 2px;
border-bottom-width: 6px;
border-right-width: 0;
border-right-style:solid;
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(); ?>>
<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>
<div class="entry-content">
<?php the_content(); ?>

View File

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