Forum Replies Created

Viewing 15 replies - 16 through 30 (of 35 total)
  • I 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 pages

    Can 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 out

    Yup 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 server

    You just need to go ahead sn install the WordPress rest all stuff are being done

    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 below

    
    
    jQuery( 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
    }
    

    When 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 created

    You 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 again

    Sorry Jan Dembowski
    I was not knowing that

    Yup

    here is an working Syntax of that

    
    /usr/local/bin/php /home/USERNAME/public_html/wp-cron.php
    
    

    Made 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(); ?>

    This will add a button on the footer section of you WordPress page
    Copy and past this code in the themes functions.php file

    If 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’ );

    Hey

    Link and on which page error is coming an in which section

    Does it on the post content page backend..??

    1=>
    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;
    }

    link..?

    For products which plugin you are using or it’s custom made by someone

    This 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 is

    https://pippinsplugins.com/use-script_debug-enable-non-minified-asset-files/

    You 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 pages

    hey 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.php

    For example: “the_content();” from the page.php

Viewing 15 replies - 16 through 30 (of 35 total)