memoryfun3
Forum Replies Created
-
Forum: Plugins
In reply to: [Filter & Grids] About all button and default termPlease refer to the link file, thanks.
https://drive.google.com/file/d/19yQMLBBMOCwKDm3kuH0_A8SbuUvmQ-TE/view?usp=drive_link
Forum: Plugins
In reply to: [Filter & Grids] About all button and default termAbout quesiton2, I try to add the following code to Custom Actions, but it didn’t work.
wp.hooks.addAction('ymc_before_loaded_data_58090_1', 'smartfilter', function(class_name) {
if (class_name === 'data-target-ymc58090-1') {
const filterContainer = document.querySelector('.data-target-ymc58090-1');
if (filterContainer) {
YMCTools({
target: '.data-target-ymc58090-1',
terms: '876'
}).apiTermUpdate();
}
}
});Forum: Plugins
In reply to: [Filter & Grids] posts count and search button textI have resolved the counter display issue using the following CSS.
.dropdown-filter .menu-passive__item .count {
display: inline-flex;
justify-content: center;
align-items: center;
padding: 0 5px;
font-size: 14px;
background-color: transparent;
white-space: nowrap;
min-width: 20px;
width: auto;
}
.dropdown-filter .menu-passive__item .count::before {
content: "(";
margin-right: 5px;
}
.dropdown-filter .menu-passive__item .count::after {
content: ")";
margin-left: 5px;
}
.dropdown-filter .menu-passive__item {
display: inline-flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
width: auto;
}
.dropdown-filter .menu-passive__item a .count {
min-width: 30px;
text-align: center;
margin-right: 3px;
}Forum: Plugins
In reply to: [Filter & Grids] Truncate Post ExcerptThanks for your help and this excellent plugin.
Forum: Plugins
In reply to: [Decent Comments] How to show the same layout in different browsersHere is my website:https://memoryfun3.com
My wordpress theme:Corpo(PC theme, different form mobile theme)
By the way, my functions.php
add_image_size('yarpp-thumbnail', 100, 140, true);
Forum: Themes and Templates
In reply to: [Corpo] archive.php does not take precedence over index.phpI have the same problem.
When I stop the Corpo Toolkit plugin, archive.php do work.
I don’t know how to deal with the Corpo Toolkit plugin, so I guess that I have to find another slider plugin.
—————————————
I try to find the Corpo Toolkit folder with keyword “archive”.
corpo_toolkit > portfolio.php delete line 124~151.
add_filter( “single_template”, “corpo_get_single_portfolio_template” ) ;
function corpo_get_archive_portfolio_template($archive_template) {
global $post;if ($post->post_type == ‘corpo_portfolio’) {
if ( file_exists( get_stylesheet_directory() . ‘/archive-corpo_portfolio.php’ ) )
return get_stylesheet_directory() . ‘/archive-corpo_portfolio.php’;return $archive_template = dirname( __FILE__ ) . ‘/templates/archive-corpo_portfolio.php’;
}
}add_filter( “archive_template”, “corpo_get_archive_portfolio_template” ) ;
function corpo_get_taxonomy_portfolio_template($taxonomy_template) {
global $post;if ($post->post_type == ‘corpo_portfolio’) {
if ( file_exists( get_stylesheet_directory() . ‘/taxonomy-corpo_services.php’ ) )
return get_stylesheet_directory() . ‘/taxonomy-corpo_services.php’;return $taxonomy_template = dirname( __FILE__ ) . ‘/templates/taxonomy-corpo_services.php’;
}
}And delete archive-corpo_portfolio.php in templates folder, archive.php do work.