I was trying to solve an unrelated problem but couldn’t find any logs for it due to the high volume of PHP warnings that array_merge
expects the first parameter to be an array.
I tracked down the function where the error was taking place and this is my fix.
If it turns out that args['class']
exists but isn’t an array, make it into an array.
function sempress_pre_get_avatar_data( $args, $id_or_email ) {
if ( ! isset( $args['class'] ) ) {
$args['class'] = array();
}
if( ! is_array($args['class'])){
$args['class'] = array($args['class']);
}
// Adds a class for microformats v2
$args['class'] = array_unique( array_merge( $args['class'], array( 'u-photo' ) ) );
$args['extra_attr'] = 'itemprop="image"';
return $args;
}
]]>
In my feed, I’m seeing a footer in posts with text that looks like this:
The post 2020-08-26 16:56 first appeared on Philip Brewer.
(That text does not appear in the post itself, just in the text of the feed.)
This is a problem because that text ends up in my micro.blog posts, and I don’t want it there.
Is there some way to turn it off? Or, is there some variant on the feed that doesn’t include it, that I can use to feed micro.blog?
]]>Hallo Matthias,
Have a question on Breadcrumbs generating the _Missing field “item”_ error in Google Search Console (so far 43 posts and growing…).
At first, I thought it was a problem with the Yoast SEO plugin.
Then I double-checked the code, and it seems this error comes from the theme itself.
GSC highlights the following:
<div class="primary-font thememattic-breadcrumb">
<div role="navigation" aria-label="Breadcrumbs" class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb"><ul class="trail-items" itemscope itemtype="https://schema.org/BreadcrumbList"><meta name="numberOfItems" content="4" /><meta name="itemListOrder" content="Ascending" /><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="trail-item trail-begin"><a href="https://amf.didiermary.fr" rel="home"><span itemprop="name">Home</span></a><meta itemprop="position" content="1" /></li><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="trail-item"><a href="https://amf.didiermary.fr/category/african-music-forum/"><span itemprop="name">African Music Forum</span></a><meta itemprop="position" content="2" /></li><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="trail-item"><a href="https://amf.didiermary.fr/category/african-music-forum/african-music-forum-rap-hip-hop/"><span itemprop="name">Rap/Hip Hop</span></a><meta itemprop="position" content="3" /></li><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="trail-item trail-end"><span itemprop="name">Harmonize – Afro Bongo (playlist)</span><meta itemprop="position" content="4" /></li></ul></div> </div>
Here’s a link to the detailed “inspection” by GSC (PNG on my site).
How do I solve this?
Thank you for your help.
Sincerely
DJM
PS: I didn’t add the code for Yoast’s breadcrumbs.
]]>Hello
At beginning I’d like to say, this theme is very good and fast. But I have two problems. One is related to me as an administrator and second is related to visitors.
When I am logged in on mobile phone, the admin bar covers the menu bar, so I can’t move between pages.
The second thing is: Menu (after clicking the bar) on mobile phone doesn’t have any “close” button (e.g “X” or sth like that). I think besides this, clicking outside the menu, to close it, would be also helpful (but it’s not necessary – I can live without it ?? )
And also maybe adding some line between mobile menu entries? ?? (Not a problem, but it would increase readability)
I would be grateful for helping with my problems (maybe they are only on mine side). I don’t want to change theme because I like this one so much.
Link to image with admin bar problem:
]]>
Translate for polish language is finished. If you like, you can request to make me editor for the Polish locale (pl_PL).
Regards
com2r
If you like, you can request to make me editor for the Dutch (nl_NL) locale.
]]>In sidebar.php:
Line 19:
<h3 class=”widget-title”><?php _e( ‘Archives’, ‘sempress’ ); ?></h1>
Last h1 should be h3
Likewise on line 26
<h3 class=”widget-title”><?php _e( ‘Meta’, ‘sempress’ ); ?></h1>
]]>This code is in the footer.
<meta itemprop=”name” content=”get_bloginfo( ‘name’, ‘display’ )” />
On https://notiz.blog/projects/sempress/ this has the name of your site. On mine it has nothing.
]]>Hello,
I had an issue with the header image which made the header overflow when displaying the search result page. After I reduced the header image to the recommended size, which is 670×200 the header imaga now is only as wide as the main content area. The side bar area is not covered by the header anymore. I changed the header image size back to the real big one (first instance, but since then I have only the content area covered.
What could have happened?
]]>Hi
You kindly wrote a short plugin script a while back called ��disable-post-images�� which automatically prevented any featured images appearing at the top of posts. I’ve recently updated my site to run SemPress 1.4.5 and it seems that the plugin no longer works:
https://cmx.org.uk/location-plus/
Any chance of an updated plugin?
Thanks!
]]>Hi
There seems to be a lot of empty/white space which has suddenly appeared at the foot of my pages. This seems to be specific to Firefox.
Firebug returns this:
<body class=”home blog logged-in admin-bar custom-background single-author customize-support” itemtype=”https://schema.org/Blog” itemscope=””>
<div id=”page” class=”hfeed h-feed feed”>
<script src=”https://cmx.org.uk/wp-includes/js/admin-bar.min.js?ver=4.2.2″ type=”text/javascript”>
<script type=”text/javascript”>
<div id=”wpadminbar” class=””>
<div class=”vdh-mask vdh-1878445673″ style=”width:580px;height:408px;top:300px;left:355px”></div>
Any way to remove this?
Thanks
Phil
]]>Hello, I have choosen your wunderful wordpress theme for this website:
https://yoga-berlin-thorsten.de/
Unfortunally there is some disorder when displayed:
1. The header is too short.
2. Below the posts you see an additional “ver?ffentlicht” (engl: “published”).
3. The font is different using Mac or Windows-PC.
Why is it?
How can I solve these problems?
I would like to keep using your theme!!!
Thank you for helping.
Hi, been trying to tweak the adsense codes in the content but they aren’t placed right… would appreciate some help
]]>What are the CSS changes to make to shift the sidebar from the right to the left? (Yes, I could figure it out myself, but if you have a ready answer to post here, it might help others as well.) Thanks!
]]>I’m using SemPress 1.4.5 and just upgraded to WP 4.0 and now I can no longer edit galleries. I’m using JetPack 3.1.1 to get the TiledMosaic effect. The problem exactly matches the description from an older reported in May 2013:
https://en.forums.wordpress.com/topic/problem-accessing-existing-gallery-to-add-more-picture
thanks,
nancy
It looks like all the necessary microformats are there, but https://indiewebify.me/ doesn’t quite like the h-entry. I’m sure this has to do more with their parser than your code but I’m wondering if there is a spot I can edit an make the change?
]]>Need to change the font size and color for the main navigation at top of site under main banner. I know it’s in the css but I’m not sure where. The site is at https://www.juliarobb.com . Any help would be appreciated.
]]>Hi pfefferle,
I’m noticing some odd behavior with the border formatting on my images.
For example, the “Google Now” image in this post (https://www.jeffsteinke.com/2014/07/travel-mobile-tech/) has a different border than all the other images. I’ve tried looking at the alignment and size CSS attributes but can’t see what I’m doing wrong.
Also, as best I can tell none of my images in the above post have the same border (rounded corners, drop shadow) that you do: https://sempressdemo.wordpress.com/image-alignment-and-styles/.
Thanks in advance for the help!
]]>How to add PagNavNum?
Thanks
Is there a way to remove the links at the top of each post that go to Previous or Next posts? I’m not sure if this is a Sempress or WordPress setting.
For example in this post: https://www.jeffsteinke.com/2014/04/wearable-technology-in-the-enterprise/ I’m looking to remove the “<– How I respond to customer emails” links.
Thanks!
]]>I’ve modified my Sempress site to use the “Roboto” Googlefont for the text.
All works fine, but what do I need to add to the css (and which css is it?) to change the search input font and “Search Here…” font that displays in the search widget box?
Thanks!
]]>Hello pfefferle
li items not showing in single line
https://ckk.ir/blog/hello-world/
Thanks
The title said it all ??
]]>I chose this great theme for my blog, but in mobile (at least in iPhone) the menu is on the top of my header. This happens because I want to hide the title and tagline. How can I fix this?
Blog: https://hexcelligent.fi
]]>I want to change the widget-title from <h1 to <h3 in my SemPress child theme.
I know I can do this in my child theme’s functions.php by changing the following code from the parent theme’s functions.php:
function sempress_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar 1', 'sempress' ),
'id' => 'sidebar-1',
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => "</section>",
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => __( 'Sidebar 2', 'sempress' ),
'id' => 'sidebar-2',
'description' => __( 'An optional second sidebar area', 'sempress' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => "</section>",
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'init', 'sempress_widgets_init' );
Despite a lot of research and some tries, I haven’t been able to get something workable. I gather I need to use remove_action somehow. But nothing I’ve read has penetrated this thick skull far enough to produce something usable.
Could somebody please tell me exactly what my code needs to be?
Thank you!
]]>I would like to make featured images clickable.
I noticed that they aren’t and I think it matters.
After googling I learned that for every theme code will be different.
Can anyone help me with that?
Hi,
thanks for this great theme, wonderful simplicity and beauty.
I couldn’t figure out how to center the menu, could you please help me ?
Many thanks,
flips
I love this theme, but the h1 at the top of each page and post to too large. (I use long page/post titles.)
Where in the css do I need to shrink the font size? I’ve tried a few to no avail. :-/
I noticed your h1 tags are visibly smaller than your h2 tags. I haven’t done a ton of blogging so not sure if this is a common theme. Just curious if this was intentional or not and if so, what’s the reasoning behind it.
Thanks!
Jeff
The plugins I’ve tried (Media File Manager and Media File Manager Advanced) have non-working thumbnails; they only produce a generic icon. THANK YOU! DL
]]>