I have found the relevant piece of code inside the theme files called html-blocks.php
. It shows that the author name post meta will output a span
rather than a link. The parent file snippet looks like this:
case 'author':
$meta_html[ $meta ] = '<span class="author' . $preview . '">' . get_the_author() . '</span>';
break;
I have referred to this document to try to customise this line inside a duplicate of this file copied to the child theme and listed inside the same directory.
This is the code I have tried:
case 'author':
$meta_html[ $meta ] = '<span class="author' . $preview . '"><a href="' . get_the_author_meta('url', $author_id) . '">' . get_the_author() . '</a></span>';
break;
Currently:
html-blocks.php
file in the child theme does not have any effect.Any suggestions welcome. Thank you in advance for your help!
]]><?php
add_action( 'wp_enqueue_scripts', 'basic_child_enqueue_styles' );
function basic_child_enqueue_styles() {
$basic_style = 'basic-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $basic_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
Thank you in advance for your help!
]]>I managed to add the icon to the left of the navigation label “Home”, but I don’t manage to remove the text “Home” in order to leave only the icon image (see https://sites.unimi.it/foodsystems/).
I tried to write “etichetta_home” in the class field (under “appearance”, “menus”, “Menu structure”, “Home”, “CSS classes”) and then I’ve added “.etichetta_home {font-size: 5px}” or “.etichetta_home {display: none}” to the end of style.CSS (Basic child) but I got no change.
If I tried to delete the text “Home” or to add empty spaces in the field “Navigation Label”, but then it is replaced by the text “About”.
Have you simple suggestions about?
]]>I have created one very basic website so I have some experience. I do not mind learning another theme.
]]>I noticed on the demo for Arcade Basic there are social icons aligned right in menu 1. I have been trying to figure out how to get something similar on my site for the past two hours. Can you please advise if this is a plugin or code that I need to paste?
Thanks in advance!
]]>I just read some previous posts online about this topic, but they’re all 2+ years old, and I’d like to know if anything has changed in the past couple of years. The top contenders for this a couple of years ago seem to be Hybrid, TwentyTen, Thematic, and Genesis.
What would you recommend of all the WordPress theme options available today?
Thanks so much for your input!!!
]]>I’ve added the php code to just below the header, but the slider is off to the left of the page. Can anyone give me any guidance?
Do I need to add some CSS into the stylesheet?
Thanks!
https://www.ads-software.com/extend/plugins/wp-featured-content-slider/
]]>