Forum Replies Created

Viewing 15 replies - 91 through 105 (of 188 total)
  • Hi

    You can add CSS to style this.

    All the best!

    Hi again ,

    Just caught up with your posts. I am glad you found it 🙂

    Please mark this as resolved.

    All the best!

    Hi

    I am setting up a test site. Hang in there, will post a solution shortly.

    Hi Simon

    Perhaps you could use your shortcode on a blank page within WordPress (code a custom page template if you need to omit certain sections etc.) and use an iframe on any external html pages?

    All the best!

    Hi there

    There appears to be possible hacking/malware issues on the site according to Google.

    Perhaps this is the main cause of your problem.

    Backup your recent posts then ask your host to restore your site to the latest working version then work on your security.

    All the best!

    Forum: Hacks
    In reply to: how to upload posts in code

    Hi

    You can write code that inserts your data into the db table.

    There are also a ton of options here:
    http://codex.wordpress.org/Importing_Content#Excel.2FCSV_Spreadsheet

    All the best!

    Hi

    Link
    The echo was really messy. I have provided a solution below.

    Button
    Use the onclick code in your button. I cannot read through your entire script right now but I hope you can figure that part out quite easily.

    Link Solution

    <?php
    
    // Queue parent style followed by child/customized style
    
    add_action( 'wp_enqueue_scripts', 'func_enqueue_child_styles', 99);
    
    function func_enqueue_child_styles() {
    
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
        wp_dequeue_style('sparkling-style');
    
        wp_enqueue_style( 'sparkling-style',
    
            get_stylesheet_directory_uri() . '/style.css',
    
            array('parent-style')
    
        );
    
    }
    
    /**
    
     * Call for action text and button displayed above content
    
     */
    
    function sparkling_call_for_action() {
    
      if ( is_front_page() && of_get_option( 'w2f_cfa_text' )!=''){
    ?>
    <div class="cfa">
    <div class="container">
    <div class="col-sm-4">
    <span class="cfa-text"><?php echo of_get_option( 'w2f_cfa_text' ); ?></span>
    </div>
    <div class="col-sm-8">
    <a class="btn btn-lg cfa-button" href="<?php echo of_get_option( 'w2f_cfa_link' );?>"><?php echo of_get_option( 'w2f_cfa_button' );?></a>
    
    <a href="http://www.yourlink.com/" onclick="window.open(this.href, 'Listen Live',
    'left=20,top=50,width=300,height=300,toolbar=yes,scrollbars=no,resizable=no'); return false;" >Listen Live</a>
    </div>
    </div>
    </div>
    <?php  }
    }

    All the best!

    Hi there

    This is your full archives.php code

    <?php
    /**
     * The template for displaying archive pages.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     * @package Amadeus
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    
    <?php // Variables $month, $prevmonth, $year and $prevyear are used to section the archive display ?>
    <?php 	$month = '';
    		$prevmonth = '';
    		$year = '';
    		$prevyear = ''; ?>
    
    <?php // Cycle through all the posts to display the archive ?>
    <?php query_posts('showposts=-1'); ?>
    <?php if (have_posts()) :?>
    <header class="page-header">
    				<?php
    					the_archive_title( '<h1 class="page-title">', '</h1>' );
    					the_archive_description( '<div class="taxonomy-description">', '</div>' );
    				?>
    			</header><!-- .page-header -->
    
    <?php while (have_posts()) : the_post(); ?>
    
    	<?php // Find the month/year of the current post ?>
    	<?php $year = mysql2date('Y', $post->post_date); ?>
    	<?php $month = mysql2date('F', $post->post_date); ?>
    
    	<?php // Compare the current month with the $prevmonth ?>
    	<?php if ($month != $prevmonth) { ?>
    		<?php // If it is different, display the new month and reset $prevmonth ?>
    		<h4><?php echo $month . ' ' . $year; ?></h4>
    		<?php $prevmonth = $month; ?>
    
    	<?php // In case the previous post was a year ago in the same month ?>
    	<?php } elseif ($year != $prevyear) { ?>
    		<h4><?php echo $month . ' ' . $year; ?></h4>
    		<?php $prevmonth = $month; ?>
    		<?php $prevyear = $year; ?>
    	<?php } ?>
    
    	<?php // Display the post in this month ?>
    	<p><a href="<?php the_permalink(); ?>"><?php echo mysql2date('d.m.y', $post->post_date); ?> - <?php the_title(); ?></a></p>
    <?php endwhile;?>
    <?php else : ?>
    <?php get_template_part( 'content', 'none' ); ?>
    <?php endif; ?>
    </main><!-- #main -->
    </div><!-- #primary -->
    
    <?php
    	if (!get_theme_mod('hide_sidebar_index')) {
    		get_sidebar();
    	}
    ?>
    <?php get_footer(); ?>

    All the best!

    Hi

    Did you try to register a new account on Site A and attempt to login to Site B?

    Hi

    You can try:

    function myplugin_deactivate()
    {
        remove_action( 'generate_rewrite_rules', 'dsbl_htaccess' );
        $GLOBALS['wp_rewrite']->flush_rules();
    }
    
    register_deactivation_hook( __FILE__, 'myplugin_deactivate' );

    All the best!

    Hi there

    You can accomplish this with a bit of Javascript.

    <a href="http://www.yourlink.com/" onclick="window.open(this.href, 'Listen Live',
    'left=20,top=50,width=300,height=300,toolbar=yes,scrollbars=no,resizable=no'); return false;" >Listen Live</a>

    Remove the options you don’t need etc.

    All the best !

    ps. please use backticks before and after your code when posting on this forum.

    You can try to increase the memory allocation in your php.ini / ask your host to do this step if you can’t.

    Also maybe try a different browser and see if that helps.

    Hi

    Are you using a visual editor ?

    Have you tried deactivating all plugins?

    Hi

    A few ideas:
    Ask the host to increase your memory (modify php.ini)
    If you’re using SSL ensure that this works properly in the front end.

    All the best!

    Hi there

    Try placing the code in your archive.php (located in your theme’s folder)

    All the best!

Viewing 15 replies - 91 through 105 (of 188 total)