Kwaku Dzaho
Forum Replies Created
-
Thank you so much for your support. It all worked.
That resolved the issue. Thank you!
Another issue in the same JavaScript snippet is that the PHP is commented out in the browser console and it does not output.
var userFirstName = '<?php echo do_shortcode("[user_first_name]"); ?>';
Here are the code snippets
/* HIDE Monster Icon */
.monsterinsights-quick-links, .monsterinsights-float-right {
display: none!important;
}
#monsterinsights_reports_widget {
padding: 50px 0;
}
#monsterinsights_reports_widget .ui-sortable-handle {
display: none!important;
}
/* Replace plugin logo */
.monsterinsights-logo-area img {
content: url('https://www.domain.com/wp-content/uploads/2024/11/Nation-Media-Dashboard-FX.png');
/* Adjust size if needed */
width: 200px; /* Adjust width */
height: auto; /* Maintain aspect ratio */
}
#adminmenu .udb-admin-logo-wrapper a {
padding: 8px 6px!important;
}
.sticky-wcp-custom-form {
margin-top: 50px;
}
.ui-resizable .wcp-container {
background-image: url(https://www.domain.com/wp-content/uploads/2024/11/Nation-Media-File-Organizer.png);
background-size: 70%;
background-position: top;
height: 90px !important;
display: block;
background-repeat: no-repeat;
margin-top: 25px;
}
.event-img {
padding-left: 20px;
top: 10px;
position: absolute;
}
/*
.index-php h1 {
display: flex !important;
padding-left:5px;
}
.logo-text-wrapper {
display: flex;
align-items: center;
gap: 10px;
}
.logo-text-wrapper img {
vertical-align: middle;
}
*/
.monsterinsights-navigation-bar .monsterinsights-reports-navigation li:nth-last-child(-n+3) {
display: none!important;
}
.monsterinsights-navigation-bar .monsterinsights-reports-navigation li:nth-child(3),
li:nth-child(5), li:nth-child(6),
li:nth-child(7) {
display: none!important;
}jQuery(document).ready(function($) {
// Get the user's first name from PHP
var userFirstName = '<?php echo do_shortcode("[user_first_name]"); ?>';
// Update the header in .index-php page with image and welcome message
$('.index-php h1').html(<br> <div class="logo-text-wrapper"><br> <a href="https://domain.com/technology/#dashboard-fx/" target="_blank"><br> <img width="200px" src="https://www.domain.com/wp-content/uploads/2024/11/Nation-Media-Dashboard-FX.png" alt="Nation Media Logo"><br> </a><br> <h1>Hello ${userFirstName}, Welcome to the Nation Media Dashboard FX!</h1><br> </div><br>
);
});
// Link the Logos
jQuery(document).ready(function($) {
// Remove any existing anchor tags around the logo
$('.monsterinsights-logo-area').unwrap('a');
// Wrap the logo in your new anchor tag
$('.monsterinsights-logo-area').wrap('<a target="_blank"></a>');
});Yes, you are right. It is a CSS WPCode snippets when assigned to Admin area location disables the option for Admin area for Javascript.
How is that possible and how I can fix it. I still want to load the CSS snippet in Admin only.
Thank you
Forum: Plugins
In reply to: [Custom Icons for Elementor] Unable to import iconsSame issue…I check dev console says
JQMIGRATE: Migrate is installed, version 1.4.1
/site/wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)I still cannot get it work. Am using that gateway because that is the only option possible in my region.
Hello @devin Walker…
Yes I have temporarily switched to another platform but I still want to use give.You can see it here https://zizikarl.org/newsite/donate . Donation still now working and can’t have access to the WordPress Dashboard with Give activated.
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Reveal Upon Click ButtonOk thank you
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Reveal Upon Click ButtonI don’t have that option. Maybe because am using a very old version which is compatible with SlydePay payment gateway.
When disable all other plugins, it still don’t work
Forum: Plugins
In reply to: [GiveWP - Donation Plugin and Fundraising Platform] Form Stylethank you, its worked
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Backup page shows blank, white pageWP Version 4.5.2. i refresh page several times