Alex Sirota
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Customizing icons for each categoryThank you this works really great… I will try images as well and see if I can get it to work with our custom images.
Indeed this plugin does exactly what I needed it to do without hacking apart the theme. Thank goncami!!!
Forum: Plugins
In reply to: [WP Super Cache] Using customizr theme and cannot get test cache to workHere are the plugins that are active
All In One SEO Pack 2.1.1
Custom Header Images 1.1.1
Customizr Unlimited Featured Pages 1.1
Formstack Plugin 1.0.6
Formstack Widget 1.0.6
Google Analyticator 6.4.7.1
Jetpack by WordPress.com 2.3
Mad Mimi for WordPress 1.5.1
Page Links To 2.9.3
Redirection 2.3.4
RSS Multi Importer 2.67.2
WordPress Importer 0.6.1
WP Filter Post Category 2.1.4
WP Stripe 1.4.6
WP Super Cache 1.4Forum: Themes and Templates
In reply to: [Customizr] Problem Using any caching plugins with customizrHere’s the WP Super Cache output for the home page
23:50:50 / supercache dir: /hermes/bosweb26c/b2958/nf.insightaas/public_html/wp/wp-content/cache/supercache/www.insightaas.com/ 23:50:50 / No Super Cache file found for current URL: /hermes/bosweb26c/b2958/nf.insightaas/public_html/wp/wp-content/cache/supercache/www.insightaas.com/index.html 23:50:51 / wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_2c5e7930fe677577757f56e0d1c22b7d/ Cookie detected: wordpress_logged_in_2c5e7930fe677577757f56e0d1c22b7d 23:50:51 / In WP Cache Phase 2 23:50:51 / Setting up WordPress actions 23:50:51 / Created output buffer 23:50:51 / wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_2c5e7930fe677577757f56e0d1c22b7d/ Cookie detected: wordpress_logged_in_2c5e7930fe677577757f56e0d1c22b7d 23:50:51 / Output buffer callback 23:50:51 / No closing html tag. Not caching. 23:50:51 / wp_cache_shutdown_callback: collecting meta data.
Forum: Themes and Templates
In reply to: [Customizr] Turning off fisheye feature on images?I found my answer in the comments for this snippet:
https://www.themesandco.com/snippet/disable-the-reveal-hover-effect-on-images-in-customizr/
Just set the .round-div style
/* disable fisheye effect */ .round-div { display:none; }
Put this in your master theme styles.css or you child’s theme styles.css (better in the child as always!)
The code I entered is inside of
<strong>
tags — the strong open and close tags are not in the actual code- they were put in there by the discussion post software when I bolded inside the code block. Sorry about that…[Moderator Note: Please post markup between backticks or use the code button.]
I’d like to affect the functionality of class-content-headings.php without wholly making it a child file… Here’s where the code goes now to make it work the way I want but in the parent theme for now
//category archives if ( !is_singular() && is_category() ) { <strong>//Custom Header Images call if(function_exists('chi_display_header')) { chi_display_header(); }</strong> $header_class = 'archive-header'; $content = sprintf( '<h1 class="%1$s">%2$s %3$s</h1>', apply_filters( 'tc_archive_icon', 'format-icon' ), apply_filters( 'tc_category_archive_title' , __( 'Category Archives :' , 'customizr' ) ), '<span>' . single_cat_title( '' , false ) . '</span>' ); if ( apply_filters ( 'tc_show_cat_description' , category_description() ) ) { $content .= sprintf('<div class="archive-meta">%1$s</div>', category_description() ); } }
Hi rdellconsulting! I did not transfer the core functions.php to the child. I am sorry if you got that from my messages. I already have a child theme working with my own functions.php. When I added the custom header images plugin code the images did not take. I was thinking they’d work from my CT functions.php but no…
It looks like this:
<?php /** * This is where you can copy and paste your functions ! */ //customize credits footer add_filter('tc_credits_display', 'iaas_custom_credits'); function iaas_custom_credits(){ echo '<div class="span4 credits"><p>© 2013-'.esc_attr( date( 'Y' ) ).' · <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · Maintained by <a href="https://www.newpathconsulting.com/">NewPath Consulting</a> · Design elements by <a href="ttps://www.facebook.com/Soudabehf.visualart">Sudi’s Design</a></p></div>'; } //remove 'Category Archives:' text add_filter('tc_category_archive_title', 'iaas_category_archive_title'); function iaas_category_archive_title($output) { return preg_replace('|Category Archives :|', null, $output); } //change Post Navigation for list of posts add_filter('tc_list_nav_title','iaas_list_nav_title'); function iaas_list_nav_title($output) { return preg_replace('|Post navigation|',null,$output); } //change Post Navigation for one post add_filter('tc_singular_nav_title','iaas_singular_nav_title'); function iaas_singular_nav_title($output) { return preg_replace('|Post navigation|',null,$output); } //change nav link for previous post add_filter('tc_list_nav_next_text','iaas_list_nav_next_text'); function iaas_list_nav_next_text($output) { return preg_replace('|Older posts|','Previous articles',$output); } //change nav link for next post add_filter('tc_list_nav_previous_text','iaas_list_nav_previous_text'); function iaas_list_nav_previous_text($output) { return preg_replace('|Newer posts|','Next articles',$output); } //Custom Header Images call if(function_exists('chi_display_header')) { chi_display_header(); } ?>
Hi there,
I was kind of afraid you’d go there but excited at the same time. This looks like a really important thing to learn.
One other thing I’d like to try is to reference the current category name in the loop. I’d like to change “Post navigation” to <Category> Articles and insert the name of the current category being viewed into the label.
My code in the filter looks as follows to remove the Post navigation altogether. I imagine I can replace the null with a Word Press variable to get at the current category. Is there a reference for this in the codex?
//change Post Navigation for list of posts add_filter('tc_list_nav_title','iaas_list_nav_title'); function iaas_list_nav_title($output) { return preg_replace('|Post navigation|',null,$output); }
Forum: Plugins
In reply to: [Custom Header Images] Header links not workingBTW, I am using the Customizr theme and I installed the header image tag in my index.php
<?php /** * The main template file. * * * @package Customizr * @since Customizr 1.0 */ get_header(); if(function_exists('chi_display_header')) { chi_display_header(); } do_action( '__fp_block' ); do_action( '__breadcrumb' ); ?>
Forum: Plugins
In reply to: [Custom Header Images] Header links not workingHi there. I am having a similar problem as above. I put in the <div> code into the custom output on the plugin configuration… This page shows the code is active
https://www.insightaas.com/category/comm/
The problem I am having is that any customer header image links are not saved in the media library. I put in a link for
Link of the Custom Header Image
for the image and when I hit update, it clears that information and doesn’t save it. Any idea why that would happen?
Forum: Themes and Templates
In reply to: [Customizr] Adding Posts to Featured Areas on Front PageHi gang, great theme by the way. There is a way to solve this problem. The theme looks for a page (not a post or a category page) for the 3 “hero” spots on the home page.
So let’s make a page that redirects to a category page or post!
There are many ways to do this but the simplest I have found is to install the plugin called Page Links To
https://txfx.net/wordpress-plugins/page-links-to/
Using this plugin you can set a redirect option for a page which simply takes you to another page. This can be in your website or a different site.
So
1. Install and activate the plugin Page Links To
2. Make a page
3. Set the redirect option to an external page which includes the path to your post or category (say /category/mycategory). If you leave the https://www.mysite.com/ part off you can move domain names without having to worry about hard coding the domain name into the redirect.
4. Publish the page
5. Test the redirect to make sure it works as you intended it by visiting the page you created in 2
6. Configure customizr and set one of the 3 hero spots to your page you tested in 5.
7. Voila! You can now point to a post or category page because your page, redirected, takes you there.Not a bad solution, but ideally the hero spots should allow categories and/or posts. And even better they should support the latest post say from a category or tag for the super-duper treatment. We’d pay for a theme like that!