Forum Replies Created
-
AuthorPosts
-
Alberto
ParticipantI solved it so, in the file functions.php child I put this code that reverses the sequence: now it shows the motto and then the title of the blog, this is important for SEO
add_filter( 'pre_get_document_title', function( $title ) { if ( is_home() || is_front_page() ) { $title = get_bloginfo( 'description' ) .' | '.get_bloginfo( 'name' ); } return $title; } );
Alberto
ParticipantAlberto
ParticipantYour code hides the automatic title tag on the home page (in the source code), but it does not show the wp_portfolio theme, it shows the homepage as text without color, without formatting
Alberto
ParticipantI’ll explain it better. In the home does not show the theme.
Alberto
ParticipantSo it does not show the home correctly
Alberto
ParticipantTanks, I did it.
Alberto
ParticipantPost before no good. This correct code:
@font-face { font-family: SnellRoundhand; src: local ('SnellRoundhand'), url('http://SITE.COM/wp-content/themes/wp-portfolio/font-awesome/snell-roundhand/SnellRoundhand.ttf') format('truetype'), url('http://SITE.COM/wp-content/themes/wp-portfolio/font-awesome/snell-roundhand/SnellRoundhand.eot') format('embedded-opentype'), url('http://SITE.COM/wp-content/themes/wp-portfolio/font-awesome/snell-roundhand/SnellRoundhand.woff') format('woff'), url('http://SITE.COM/wp-content/themes/wp-portfolio/font-awesome/snell-roundhand/SnellRoundhand.woff2') format('woff2'); }
Alberto
ParticipantI think it’s OK now.
Folders directory: themes/wp-portfolio/font-awesome/snell-roundhand
Font: SnellRoundhand .ttf, .otf, .woff
In the child css:
@font-face { font-family: SnellRoundhand; src: url(SnellRoundhand.ttf) format('truetype'), url(SnellRoundhand.woff) format('woff'), url(SnellRoundhand.eot) format('embedded-opentype'); } /* Copyright sotto le frasi */ .frasicopy { font-family: SnellRoundhand, times, arial; font-size: 1.1em; font-style: normal; color: #118040; }
Alberto
ParticipantThe Snell Roundhand font is free.
I have put in the css and it works. I did not download it from the web.
I only put this css in the child so: font-family: “Snell Roundhand”, arial;Alberto
Participant -
AuthorPosts