harimay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fatal error get_current_screenI think you Problem will get Solved
Simple add this line in themes functions.php file
add_action( 'init', 'Harimay_init_callback', 10001 ); function Harimay_init_callback(){ if( ! function_exists( get_current_screen ) ){ function get_current_screen() { global $current_screen; if ( ! isset( $current_screen ) ) return null; return $current_screen; } } }
This is not an perfect way but can solved you problem
Forum: Fixing WordPress
In reply to: Empty pagesCan you send the page.php an other file include in the page templates
Code screen short I think then only I can able to help you outForum: Installing WordPress
In reply to: Installation issuesYup it will the affected the other Domain
You sites is working now. I think it was DNS server pointing It take sometime to point the domain to the serverYou just need to go ahead sn install the WordPress rest all stuff are being done
Forum: Fixing WordPress
In reply to: How can I insert both JS, CSS and HTML into a specific WP-page?Add this in the Text editor of the board members Section
Notes: We should not change the Class an id of the HTML<div class="harimay_main"> <div class="harimay_hidden"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce facilisis sagittis lectus. Curabitur quam arcu, adipiscing quis pretium in, pharetra eget dolor.</p> </div> </div>
Add this Line in file
https://butterflyfoundation.dk/wp-content/themes/oshin/js/script.js
As belowjQuery( document ).ready( function(){ jQuery('.harimay_hidden').hide().before('<a href="#" id="open-harimay-hidden" class="button" style="display: inline;">L?s mere om Diana ↓</a>'); jQuery('.harimay_hidden').append('<a href="#" id="close-harimay-hidden" class="button">Luk ↑</a>'); jQuery('a#open-harimay-hidden').click(function() { jQuery( this ).closest( '.harimay_main' ).find('.harimay_hidden').slideDown(1000); jQuery( this ).closest( '.harimay_main' ).find('#open-harimay-hidden').fadeOut(500); return false; }); jQuery('a#close-harimay-hidden').click(function() { jQuery( this ).closest( '.harimay_main' ).find('.harimay_hidden').slideUp(1000); jQuery( this ).closest( '.harimay_main' ).find('#open-harimay-hidden').fadeIn(500) return false; }); });
Add this Line in file
https://butterflyfoundation.dk/wp-content/themes/oshin/style.css
As below.harimay_main .button { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); background: #eee; border: 0; color: #333; cursor: pointer; font-family: "Lucida Grande", Helvetica, Arial, Sans-Serif; margin: 0; padding: 6px 4px; text-decoration: none; position: relative } .harimay_main .harimay_hidden p { border: 1px solid #eee; background: #eee; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 400px; padding: 10px; margin: 10px 0 }
Forum: Fixing WordPress
In reply to: How to change permalinks from test to officialWhen Moving from test Sites to Main sites
All the Text widget that you have add will get lost,So you have to take a Backup of the text Widget you have createdYou need to change the Url from the Cpanel of the Server
First Export the DB an then make a copy of the DB ( For Safety )
Then you need to change the OLD_URL to NEW_URL
an then import it again to the Phpmyadmin
Then Login to admin section
Goto Setting->permalink and set the permalink againForum: Fixing WordPress
In reply to: Visual Editor Blank, No Text EditorSorry Jan Dembowski
I was not knowing thatForum: Fixing WordPress
In reply to: Triggering Cron JobsYup
here is an working Syntax of that
/usr/local/bin/php /home/USERNAME/public_html/wp-cron.php
Forum: Fixing WordPress
In reply to: Only display, if other posts in categoryMade changes in you first line
Old:<h2 class="bluebottom"><?php $categories = get_the_category(); foreach($categories as $category) { echo $category->name . ' '; } ?></h2>
New:
<h2 class="bluebottom"><?php $categories = get_terms( 'category', array( 'hide_empty' => true ) ); foreach($categories as $category) { echo $category->name . ' '; } ?></h2>
<h2 class="bluebottom"><?php $categories = get_terms( 'category', array( 'hide_empty' => true ) ); foreach($categories as $category) { echo $category->name . ' '; } ?></h2>
-
<?php
global $post;
$category = get_the_category($post->ID);
$category = $category[0]->cat_ID;
$myposts = get_posts(array('numberposts' => 99, 'category__in' => array($category), 'post__not_in' => array($post->ID),'post_status'=>'publish'));
foreach($myposts as $post) :
setup_postdata($post);
?>
- "> <?php the_title(); ?> <?php endforeach; ?> <?php wp_reset_query(); ?>
Forum: Fixing WordPress
In reply to: How can I insert both JS, CSS and HTML into a specific WP-page?This will add a button on the footer section of you WordPress page
Copy and past this code in the themes functions.php fileIf you want to add it some whee else let me know
function wp_footer_callback() { ?>
<div class=”example1″>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce facilisis sagittis lectus. Curabitur quam arcu, adipiscing quis pretium in, pharetra eget dolor.</p>
</div>
<script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(‘.example1’).hide().before(‘L?s mere om Diana ↓‘);
jQuery(‘.example1’).append(‘Luk ↑‘);
jQuery(‘a#open-example1’).click(function() {
jQuery(‘.example1’).slideDown(1000);
jQuery(‘#open-example1’).fadeOut(500);
return false;
});
jQuery(‘a#close-example1’).click(function() {
jQuery(‘.example1’).slideUp(1000);
jQuery(‘#open-example1’).fadeIn(500)
return false;
});
});
</script><style type=”text/css”>
.button {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: #eee;
border: 0;
color: #333;
cursor: pointer;
font-family: “Lucida Grande”, Helvetica, Arial, Sans-Serif;
margin: 0;
padding: 6px 4px;
text-decoration: none;
position: relative
}.example1 p,
.example2 p {
border: 1px solid #eee;
background: #eee;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
width: 400px;
padding: 10px;
margin: 10px 0
}
</style><?php
}
add_action( ‘wp_footer’, ‘wp_footer_callback’ );Forum: Fixing WordPress
In reply to: PDF Uploading HTTP ErrorHey
Link and on which page error is coming an in which section
Does it on the post content page backend..??
Forum: Fixing WordPress
In reply to: 2016 Blog text spacing1=>
On the Blogs page, https://www.kiminipublications.com/wp/stuff/blogs/, I’d like to narrow up the right-side Archive sidebar in order to increase post width.Add this to you style.css file
body.blog .sidebar {
width: 25%!important;
}
body.blog .content-area {
width: 75%!important;
}Forum: Fixing WordPress
In reply to: Problems in updatinglink..?
For products which plugin you are using or it’s custom made by someone
Forum: Fixing WordPress
In reply to: Visual Editor Blank, No Text EditorThis link will be help full for you
Adding this to your wp-config.php
define( ‘SCRIPT_DEBUG’, true );When you add the above line
WordPress enqueue all unminified script can then you can test what the problem ishttps://pippinsplugins.com/use-script_debug-enable-non-minified-asset-files/
Forum: Fixing WordPress
In reply to: wordpress compatibility with cherry frameworkYou must take a server Backup an then try updating the WordPress ( AT YOU OWN RISK )
It will be better if you contact you developer of you Sites he is the right person to help you with his
Forum: Fixing WordPress
In reply to: Empty pageshey yassersh
Did you change an of you code or themes file yesterday
I think you have just add or remove some line from you page.php page in the theme folder of wp-content/themes/responsive/page.phpFor example: “the_content();” from the page.php