MortenPeterAndersen
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple News] News page changed background colorHello again Marc
I can see that you use different languages on your page …. you should be able to change the text string in the language plugin you use
Forum: Plugins
In reply to: [Simple News] News page changed background colorHello Marc
.simple-news-con { box-sizing: border-box; }
The first thing I want you to change is to add this code to your custom CSS. (I will implement it in the next update!)
The title:
You should have two new widget area. “News Top” and “News Bottom”. Place a text-widget here … and write what you like ????
MortenForum: Plugins
In reply to: [Simple News] Upgrade from 2.2 to 2.4 breaks wordpress themes??
Forum: Plugins
In reply to: [Simple News] Upgrade from 2.2 to 2.4 breaks wordpress themesHey mthyogz
I’ve got a solution ready …. but I have to test it a little more. If you send me an email I can send you the new “pre-release”Forum: Plugins
In reply to: [Simple News] Individual News Article Not DisplayingSound like there is something wrong with your theme
Forum: Plugins
In reply to: [Simple News] Individual News Article Not DisplayingHey ecliptictech1
I think you need to save your permalink once again … think that will solve the problem.See nr. 4
https://www.ads-software.com/plugins/simple-news/#installation??
Morten- This reply was modified 4 years, 7 months ago by MortenPeterAndersen.
Forum: Plugins
In reply to: [Simple News] Specify number of items displayed without using widgetglad i could help
Forum: Plugins
In reply to: [Simple News] Specify number of items displayed without using widgetHey
You change the number inside WordPress/wp-admin/options-reading.php
Forum: Plugins
In reply to: [Simple News] Upgrade from 2.2 to 2.4 breaks wordpress themesHey mythos and chrisc99
The problem is that my templatefile is very simple. Only printing ‘header, loop and footer’<?php get_header(); loop get_footer(); ?>
I have to code an checkbox on the admin page. If checked it will ignore the plugin files … and use the themefiles.
??
Morten- This reply was modified 4 years, 8 months ago by MortenPeterAndersen.
- This reply was modified 4 years, 8 months ago by MortenPeterAndersen.
Forum: Plugins
In reply to: [Simple News] Short code for display only news title??
Forum: Plugins
In reply to: [Simple News] Automatic information from URL??
Forum: Plugins
In reply to: [Simple News] 2 x news plugins???
Forum: Plugins
In reply to: [Simple News] Upgrade from 2.2 to 2.4 breaks wordpress themesstrange ???
I have tested with twentynineteen theme and a child theme to that …. and everything works fine
- This reply was modified 4 years, 9 months ago by MortenPeterAndersen.
Forum: Plugins
In reply to: [Simple News] Upgrade from 2.2 to 2.4 breaks wordpress themesThis snippet also tjek if archive-news.php is in a child theme
if ( !file_exists( trailingslashit( get_stylesheet_directory() ) . 'archive-news.php' ) || !file_exists(trailingslashit( get_template_directory() ) . 'archive-news.php' ) ) { add_filter( 'template_include', 'simple_news_page_template' ); function simple_news_page_template( $template ) { $file_name = 'archive-news.php'; if ( is_post_type_archive('news') ) { $template = dirname( __FILE__ ) .'/files/templates/'. $file_name; if ( '' != $new_template ) { return $new_template ; } } return $template; } }
Forum: Plugins
In reply to: [Simple News] Category view broken after update to version 2.1Hi mik9
It would be awesome if you are willing to try this code:
add_filter('pre_get_posts', 'simple_news_query_post_type'); function simple_news_query_post_type($query) { if( is_category() ) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('nav_menu_item', 'post', 'news'); $query->set('post_type',$post_type); return $query; } }
this replace everything from line 99 to 110
??
Morten