peterfasol
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme font not displayingThanks, problem has been solved in the theme support forum, see https://ww.wp.xz.cn/support/topic/theme-font-not-displaying-3/
Peter
Forum: Themes and Templates
In reply to: [Baskerville] Theme font not displayingYes! That did it, problem solved. Many thanks!
Peter
Forum: Themes and Templates
In reply to: [Baskerville] Theme font not displayingHi Anders,
Here’s the functions.php of the child theme:
<?php // Opening PHP tag - nothing should be before this, not even whitespace
// Custom Function to Include
function show_jp_post_views( $post ){
if( !is_object( $post ) ) return;
if( function_exists( 'stats_get_csv' ) ){
$args = array(
'days' => -1,
'post_id' => $post->ID,
);
$postviews = stats_get_csv( 'postviews', $args );
$views = $postviews['0']['views'];
echo $views;
}
}
// dependency order stylesheets
function CHILD_load_style() {
if ( ! is_admin() ) {
wp_register_style( 'baskerville_style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'CHILD_style', get_stylesheet_uri(), array( 'baskerville_style' ) );
}
}
add_action( 'wp_print_styles', 'CHILD_load_style', 1 );
// add TNG to the WP Toolbar
function custom_toolbar_link($wp_admin_bar) {
$args = array(
'id' => 'TNG',
'title' => 'TNG',
'href' => 'https://www.fasol.nl/tng/admin.php',
'meta' => array(
'class' => 'TNG',
'title' => 'TNG'
)
);
$wp_admin_bar->add_node($args);
// Add Analytics to WP Toolbar
$args = array(
'id' => 'Analytics',
'title' => 'Analytics',
'href' => 'https://analytics.google.com/analytics/web/',
'meta' => array(
'class' => 'Analytics',
'title' => 'Analytics'
)
);
$wp_admin_bar->add_node($args);
// Add Adsense to WP Toolbar
$args = array(
'id' => 'Adsense',
'title' => 'Adsense',
'href' => 'https://www.google.com/adsense/',
'meta' => array(
'class' => 'Adsense',
'title' => 'Adsense'
)
);
$wp_admin_bar->add_node($args);
// Add Webmaster Tools to WP Toolbar
$args = array(
'id' => 'Search console',
'title' => 'Search console',
'href' => 'https://www.google.com/webmasters/tools/',
'meta' => array(
'class' => 'Search console',
'title' => 'Search console'
)
);
$wp_admin_bar->add_node($args);
// Add Adwords to WP Toolbar
$args = array(
'id' => 'Zoekwoordplanner',
'title' => 'Zoekwoordplanner',
'href' => 'https://adwords.google.com/ko/KeywordPlanner/Standalone/Home',
'meta' => array(
'class' => 'Zoekwoordplanner',
'title' => 'Zoekwoordplanner'
)
);
$wp_admin_bar->add_node($args);
// Add WordPress Support to WP Toolbar
$args = array(
'id' => 'Wordpress Support',
'title' => 'Wordpress Support',
'href' => 'https://ww.wp.xz.cn/support/users/peterfasol/',
'meta' => array(
'class' => 'Wordpress Support',
'title' => 'Wordpress Support'
)
);
$wp_admin_bar->add_node($args);
}
add_action('admin_bar_menu', 'custom_toolbar_link', 999);
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
// Breadcrumbs
function the_breadcrumb() {
global $post;
echo '<p id="breadcrumbs">';
if (!is_home()) {
echo '<a href="';
echo home_url();
echo '" title="Homepage">';
echo 'Home';
echo '</a> > ';
if (is_category() || is_single()) {
echo '';
the_category(' > ');
if (is_single()) {
echo ' > ';
the_title();
echo '';
}
} elseif (is_page()) {
if($post->post_parent){
$anc = get_post_ancestors( $post->ID );
$title = get_the_title();
foreach ( $anc as $ancestor ) {
$output = '<a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a> >';
}
echo $output;
echo '<strong title="'.$title.'"> '.$title.'</strong>';
} else {
echo '<strong> '.get_the_title().'</strong>';
}
}
}
elseif (is_tag()) {single_tag_title();}
elseif (is_day()) {echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>';}
elseif (is_month()) {echo"<li>Archive for "; the_time('F, Y'); echo'</li>';}
elseif (is_year()) {echo"<li>Archive for "; the_time('Y'); echo'</li>';}
elseif (is_author()) {echo"<li>Author Archive"; echo'</li>';}
elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li>Blog Archives"; echo'</li>';}
elseif (is_search()) {echo"<li>Search Results"; echo'</li>';}
echo '</p>';
}
//pagination
function pagination($pages = '', $range = 4)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "<div class=\"pagination\"><span>Pagina ".$paged." van ".$pages."</span>";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>« Eerste</a>";
if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Vorige</a>";
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "<span class=\"current\">".$i."</span>":"<a href='".get_pagenum_link($i)."' class=\"inactive\">".$i."</a>";
}
}
if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Volgende ›</a>";
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Laatste »</a>";
echo "</div>\n";
}
}
// Remove Continue reading
function sbt_auto_excerpt_more( $more ) {
return ' >>>';
}
add_filter( 'excerpt_more', 'sbt_auto_excerpt_more', 20 );
function sbt_custom_excerpt_more( $output ) {return preg_replace('/<a[^>]+>Continue reading.*?<\/a>/i','',$output);
}
add_filter( 'get_the_excerpt', 'sbt_custom_excerpt_more', 20 );Forum: Themes and Templates
In reply to: [Baskerville] Theme font not displayingHi Anders,
Thanks. I am not very good at this. I will quote my child theme’s style.css below. Am I correct that I should remove the line: @import url(“../baskerville/style.css”);
/*
Theme Name: Baskerville Child Theme
Theme URI:
Description: Baskerville Child Theme
Author: Anders Norén
Author URI:
Template: baskerville
Version: 1.0.0
*/
@import url("../baskerville/style.css");
/* =Theme customization starts here
------------------------------------------------------- */
*/
.header { padding: 70px 0; }
.header .cover { background: rgba(29,29,29,0.25); }
.header-inner { position: relative; }
.header .blog-logo { text-align: center; }
.header .logo { display: inline-block; }
.header .logo img {
max-height: 150px;}
.dd_outer {
display: none;
}
.searchform .s {color: #000!important;}
*/
.pagination {
clear:both;
padding:20px 0;
position:relative;
font-size:11px;
line-height:13px;
}
.pagination span, .pagination a {
display:block;
float:left;
margin: 2px 2px 2px 0;
padding:6px 9px 5px 9px;
text-decoration:none;
width:auto;
color:#fff;
background: #262626;
}
.pagination a:hover{
color:#fff;
background: #13C4A5;
}
.pagination .current{
padding:6px 9px 5px 9px;
background: #13C4A5;
color:#fff;
}Forum: Reviews
In reply to: [Classic Editor] WordPress how it was meantHi @jordesign, my frustration with the block editor was that it was very counter-intuitive to me; the classic editor is WYSIWYG and resembles word processors like MS Word. With the Block Editor I spent 90% of my time trying to locate functions and then getting it to make my page look the way i had it in my head. The user interface also came across to me as very clunky: lots of screen space for tools (and tools i could not find because they were hidden behind other tools); I just got totally lost all the time and never got used to it.
In short, i think my main problem is that I want the text to be central, not the page make-up. I want to focus on the story I am writing, not having my train of thought interrupted with every new section, having to think about what it has to look like and trying in vain to get that done. Just let me type my text and make a few headers after, insert an image, and done. Keeping it simple.
- This reply was modified 2 years, 7 months ago by peterfasol.
Forum: Plugins
In reply to: [ActivityPub] Removing profile made with this pluginAha! That was totally unclear to me, I was under the impression that the plugin had created an actual account somewhere under the hood of my wordpress. Which then exists on mastodon.
I did not understand that what you see on mastodon is just a cache of the wordpress blog. So this helps, if i would deactivate or delete the plugin, the ‘account’ will indeed vanish from mastodon search?
- This reply was modified 2 years, 8 months ago by peterfasol.
Forum: Plugins
In reply to: [ActivityPub] Removing profile made with this pluginIf you could find a way to login to said Mastodon account outside of wordpress altogether, in a mastodon-environment, it would be fixed. You could delete it, move it and change profile settings from there.
Forum: Plugins
In reply to: [ActivityPub] Removing profile made with this pluginThanks for replying.
I do think that this is a serious flaw and a warning should be in place before people go ahead and make profiles for themselves that they cannot remove.
Cheers,
Peter
Thanks @emermatomo i have been able to make it work!
For those using TNG: i tried adding it to meta.php, that didn’t work.
Use this method instead: in your admin panel, general settings/site definition, add the code to the field ‘Custom footer message’. That works.
Peter
- This reply was modified 3 years, 1 month ago by peterfasol.
Hi @emermatomo
Thanks for your reply. To be clear, i am using the Matomo WordPress plugin. I am not using the self hosted package nor a premium package.
Also, my question was not about tracking a visitor correctly across 2 domains, it was if tracking a user on the non-wordpress part of my website (in a subdirectory, not a subdomain), was possible at all, since nothing there is currently being tracked.
That said, i tried the suggestions you offered. The first one was not possible since i had to enter a password, but using the WordPress plugin one is not provided with a separate password.
The second option was for the premium package only, which i am not using.
So, still at a loss, unfortunately.
Peter
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Error after updateSolved!
- This reply was modified 8 years, 2 months ago by peterfasol.
Ah, never mind, it is fixed after all. I think a cached version was still in my browser. Resolved, using the code I mentioned in my question.
Peter
Forum: Plugins
In reply to: [MailMunch - Grow your Email List] All forms dissapearedSolved it using this tutorial: https://help.mailmunch.com/hc/en-us/articles/115002386329-Forms-not-showing-in-WordPress-plugin
Forum: Plugins
In reply to: [Asgaros Forum] error after updateHmm, the error message seems to have spontaniously dissapeared again.
So, fixed, I think.
– Peter
Forum: Plugins
In reply to: [Redirection] redirect multiple urls with query (?etc….) to singe pageThanks for your help.
Alas, it did not work. Perhaps I should mention that the /tng/urls are not WordPress.
Still looking for other solutions.Peter
- This reply was modified 9 years, 4 months ago by peterfasol.