grumblenz
Forum Replies Created
-
PS If you are on shared hosting, 64mb is the maximum setting.
Forum: Reviews
In reply to: [Jigoshop] My one and onlyTry WooCommerce sometime. It’s the same thing by different developers and the extensions tend to work for both. I used to use Jigo but moved on to Woo as it had more extensions. Both are great until you get REALLY serious and go Magento.
WOW!! My amateur php coding skills worked at last!!
In wp-config.php, add this line (M = Mb of memory obviously – change to suit) :
-
define( ‘WP_MEMORY_LIMIT’, ’64M’ );
So you end up with this (Partial section of code):
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link https://codex.www.ads-software.com/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don’t have to use the web site, you can just copy this file
* to “wp-config.php” and fill in the values.
* @package WordPress
*/define( ‘WP_MEMORY_LIMIT’, ’64M’ );
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */ etc.Apparently, this is the answer:
https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHPBUT!! I don’t know php, broke my site trying to follow their lame instructions (got it back), so await for some idiot proof cut and paste instructions.
Forum: Themes and Templates
In reply to: [AccessPress Lite] Featured PostsTracsd
To remove the Events and Welcome, I edited the index-one.php (No time to make a child theme).
Remove the following code (or you could put it after the Featured Posts (an option I liked, rearranging the order so the fancy parts showed ‘above the fold’)
<section id=”top-section” class=”ak-container”>
<div id=”welcome-text” class=”clearfix”>
<?phpif(!empty($accesspresslite_welcome_post_id)){
$query1 = new WP_Query( ‘p=’.$accesspresslite_welcome_post_id );
while ($query1->have_posts()) : $query1->the_post(); ?><h1>“><?php the_title(); ?></h1>
<?php
if( has_post_thumbnail() ){
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘full’, false );
?><figure class=”welcome-text-image”>
“>
<img src=”<?php echo $image[0]; ?>” alt=”<?php the_title(); ?>”>
</figure>
<?php } ?><div class=”welcome-detail<?php if( !has_post_thumbnail() ){ echo ” welcome-detail-full-width”; } ?>”>
<p><?php echo accesspresslite_excerpt( get_the_content() , $accesspresslite_welcome_post_char ) ?></p>
<?php if(!empty($accesspresslite_settings[‘welcome_post_readmore’])){?>
” class=”read-more bttn”><?php echo $accesspresslite_settings[‘welcome_post_readmore’]; ?>
<?php } ?>
</div><?php endwhile;
wp_reset_postdata();
}else{ ?>
<h1>Welcome Message</h1>
<figure class=”welcome-text-image”>
<img src=”<?php echo get_template_directory_uri(); ?>/images/demo/welcome-image.jpg” alt=”welcome”>
</figure><div class=”welcome-detail”>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p>
Read More
</div><?php } ?>
</div><div id=”latest-events”>
<?php
if(!empty($accesspresslite_event_category)){$loop = new WP_Query( array(
‘cat’ => $accesspresslite_event_category,
‘posts_per_page’ => $accesspresslite_show_event_number,
)); ?><h1>“><?php echo get_cat_name($accesspresslite_event_category); ?></h1>
<?php while ($loop->have_posts()) : $loop->the_post(); ?>
<?php
$accesspresslite_event_day = get_post_meta( $post->ID, ‘accesspresslite_event_day’, true );
$accesspresslite_event_month = get_post_meta( $post->ID, ‘accesspresslite_event_month’, true );
$accesspresslite_event_year = get_post_meta( $post->ID, ‘accesspresslite_event_year’, true );
?><div class=”event-list clearfix”>
<?php if(!empty($accesspresslite_event_day) || !empty($accesspresslite_event_month) || !empty($accesspresslite_event_year)){ ?>
<div class=”event-date”>
<span class=”event-date-day”><?php echo $accesspresslite_event_day; ?> <?php echo $accesspresslite_event_month; ?></span>
<span class=”event-date-month”><?php echo $accesspresslite_event_year; ?></span>
</div>
<?php }else {?>
<div class=”event-date”>
<span class=”event-date-day”><?php echo get_the_date(‘j’); ?></span>
<span class=”event-date-month”><?php echo get_the_date(‘M’); ?></span>
</div>
<?php } ?></figure>
<div class=”event-detail”>
<h4 class=”event-title”>
“><?php the_title(); ?>
</h4><div class=”event-excerpt”>
<?php echo accesspresslite_excerpt( get_the_content() , 100 ) ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata();} else { ?>
<h1>Latest Events/News</h1>
<?php for ( $event_count=1 ; $event_count < 4 ; $event_count++ ) { ?>
<div class=”event-list clearfix”>
<figure class=”event-thumbnail”>
<img src=”<?php echo get_template_directory_uri().’/images/demo/event-‘.$event_count.’.jpg’; ?>” alt=”<?php echo ‘event’.$event_count; ?>”>
<div class=”event-date”>
<span class=”event-date-day”><?php echo $event_count; ?></span>
<span class=”event-date-month”><?php echo “Mar”; ?></span>
</div>
</figure><div class=”event-detail”>
<h4 class=”event-title”>
Title of the event-<?php echo $event_count; ?>
</h4><div class=”event-excerpt”>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor…
</div>
</div>
</div>
<?php }
} ?>
</div>
</section>