dickli
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to get post type of ANOTHER postTheme is Customizr
Forum: Themes and Templates
In reply to: How to get post type of ANOTHER postHi Michael,
Code is below. Since it will be referring to several pages and not just one, what would the post_id argument be to make the snippet dynamic?
add_filter(‘get_the_title’, ‘aggregate_title’, 10, 2);
function aggregate_title ($title) {
if (‘post’ == get_post_type()) {
$my_title = get_field(‘day’);
$new_title = ‘Day ‘ . $my_title . ‘: ‘ . $title;
return $new_title;} else {
return $title;
}
}Forum: Plugins
In reply to: [qTranslate X] Translate custom title from databaseNevermind, the same logic for custom fields applies to mine, as long as I format the field before it becomes saved in the database.
Forum: Themes and Templates
In reply to: [evolve] Can't override parent styles with !important descriptorHi,
My goal is to NOT have any code with an !important declaration. Because there are 195 !important declarations in the parent style.css, I have to use !important declarations in the child style.css to override those 195 declarations in the parent style.css.
Is there no other way to override an !important declarations in the parent style.css? Thanks!
Forum: Themes and Templates
In reply to: [evolve] Can't override parent styles with !important descriptorHi,
I actually followed that to get to this point. The problem is the parent theme also has !important descriptors, 195 in fact. The styles without those descriptors in the parent theme override properly without an !important descriptor in the child. But the styles with !important descriptors in the parent require an !important descriptor in the child.
I know I can remove all the !important descriptors in the parent, but surely there has to be another way.
Best,
Richard