Redirect Your Custom Post or Pages to login page when viewers are not logged in


Recently one of my client asked me to redirect her viewers ( who wants to check her profile page) to the Login page if the viewers are not logged in. As the profile page are of Custom Posts. I have tried to solve the issue using the following code.

<?php
 $page_id = get_queried_object_id();
if ( !is_user_logged_in() && get_post_type($page_id) =='YourCustomPostType' )
 {
  header('Location: http://www.YourLoginPageURLHere.com');
 }
?>

Modern wordpress portfolio theme Argent by automattic: For professional designers, artists and photographers


Theme Argent by Automattic demo screenshot

Argent is a clean and modern portfolio theme, geared towards creative professionals like designers, artists, and photographers. With its simple homepage template featuring portfolio projects, Argent aims to draw viewers right at what matters most: your wonderful work.

You can download the Argent theme by Automattic from here.
and
You can download the Argent Child theme to modify theme files like footer.php

I have shared some css customization to give Argent theme a new look of your choice. You can ask question regarding any issue you are facing in comments section.

Read more of this post

Showcase your images in this clean, responsive grid-based Gridspace theme By Graph Paper Press


Gridspace By Graph Paper Press

If you want to showcase your images in grid based layout then Gridspace theme By Graph Paper Press is for you. You can use this theme for free if you are using Premium or business plan of wordpress.com. I am sharing you some css customization tricks so that you can style it as your own.

You can ask question regarding any issue you are facing.

Read more of this post

Small Business owner wordpress theme : create website and modify theme Business by automattic


If you are Running a small business or if you are a small entrepreneur then Business theme by Automattic is for you. Using this theme you can create your website for your small business.  Here I am sharing some css modifications using which you can give Business theme by Automattic a new look.

You can download Business Theme by Automattic (Parent theme)

also

You can download Business Child theme ( to modify theme file…like  footer.php)

 

Business theme Demo screenshot

You can ask question regarding any issue you are facing.

Read more of this post

Solution of HTTP 500 Internal Server Error in wordpress while logging in.


500 internal server error

Today, one of my client asked me about an issue what he was facing. While logging in wordpress dashboard he was seeing  HTTP 500 Internal Server Error.

To solve the issue, I checked by  Disabling some plugins and found this error

Fatal error: Out of memory (allocated 115867648) (tried to allocate 32 bytes) in /home4/doxxxxx/xxxx.com/wp-content/plugins/snax/includes/formats/meme/settings.php on line 54

Also, I checked by  making WP_DEBUG value to  True  in wp-config.php but didn’t get any culprit plugins which is causing this.

Also, in wp-config.php I tried to increase the php memory limit by adding these 2 lines of code but that didn’t help either.

define(‘WP_MEMORY_LIMIT’, ‘256M’);

define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’);

Ultimate Solution:

So, the way I solved the issue by changing the php version of the cpanel using in the host.

Go to your cpanel and then click on  PHP Selector

 

change php version in cpanel of hostgator

Then Upgrade the version ( in my case I upgraded the PHP version from 5.6 to 7) and save it

Done. The issue should be solved 🙂

Showcase your photos using Wordpress theme Photos By Automattic : Creating website and modifications


If you are a photo blogger then Photos theme is for you. Photos is a  single column blogging theme which showcase  your photos in a grid format. Photos is basically an image-oriented theme with a simple and clean layout, designed to help you showcase your loved or favourite snapshots. Here I am sharing you css styling code to modify the theme so that you can give a look of your choice. You  can check the demo of Photos theme by Automattic.

Also,

Download this Photos theme by Automattic.

Download Photos Child theme
You can ask question regarding any issue you are facing.

Read more of this post

Button Click and Show Image or Card: You can use it for Tarot card readings or for your slider


tarot card reading program

Few days ago one of my client asked me to create a simple program for Tarot Card Reading. Where visitors will click on a button and random card will be visible. For this issue I have created a little code where 8 (eight) card will be visible randomly by clicking on the button.

Here is the logic

Suppose there is 8 (eight) cards and visitors will have to click on the button to see which number comes to him.

I have taken a random number between 1 (one) to 8 (eight) and managed to show that number of card.

For example : Visitor click on the button and Randomly 8 is selected by the program. Then card number 8(eight) will be visible.

Here is the code:

****** CSS Part ******


.card.container {

}
div#frame {
width: 900px;
height: 600px;
background: darkred;
display: block;
margin: auto !important;
position: relative;
}
.button {
display: block;
width: 191px;
height: 34px !important;
background: yellow;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin-left: auto !important;
text-align: center !important;
margin-right: auto;
padding-top: 18px;
font-weight: bold;
cursor: pointer !important;
}

 

****** Code JQuery ******

 
<script>

jQuery(document).ready(function() {


jQuery('.button').on('click',function(){
var min =1;
var max = 8;
// and the formula is:
var random = Math.floor(Math.random() * (max - min + 1)) + min;
var src="img/"+random+".jpg"
jQuery("#frame img").attr("src",src);
//alert(src);

});

});

</script>
 

****** Code HTML ******

 
<div class="card container">

<div id="frame">
<img src="img/1.jpg"/>
<div class="button"> Click & See Your Card</div>
</div>

</div>
 

 

Here is the Full Tarot card changing program.

Create Website for Publishing or Editorial work using Wordpress theme Editor by Array: Documentation,Modification and Customization


theme Editor by array demo

Geared toward personal bloggers and photo bloggersEditor includes big typography and images, plus a tab-based sidebar with a spot for a social links menu, featured posts, and a site logo. Here I am sharing you some css style code using which you  can modify the theme and can give it a different look which you want.

You can download the Editor Theme by Array from here. You can check Editor Theme Demo.

To modify Footer or Header files of Editor Theme, Download Editor Child theme.

You can ask question regarding any issue you are facing.

Read more of this post

Gateway By Rescue Themes : Modification of Header, footer, space, font, sidebar, content, images using css and documentation



Gateway is a wordpress theme developed by  Rescue Themes. Gateway is the perfect mix of class and elegance, a traditional yet customizable home for your content. Reinforce your brand with a site logo, add a bold header image and call to action, and showcase your best posts or a video with a special Homepage template. In wordpress.com you can use this theme for free. You can check demo of Gateway by Rescue Themes.

Here I am sharing you some css customization using which you can give your Gateway theme a new look.

You can download  Gateway By Rescue Themes (Parent theme)

Also,  to edit or modify  the theme  Download Gateway By Rescue Themes (Child theme)

You can ask question regarding any issue you are facing.

Read more of this post

Pictorico By Automattic : Theme for travel site, photoblogging or artwork and modifications of header,footer, contents, sidebar,fonts using css


Pictorico by Automattic is a single-column, grid-based theme with large featured images and a post slider, perfect for a photoblogging or travel site.

pictorico by automattic grid-based theme with large featured images and a post slider

Here I am sharing css customization to give your Pictorico theme  a new look.
You can ask question regarding any issue you are facing.

Read more of this post

%d bloggers like this: