timyoungorg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: admin login problem due possibly from unwanted userThanks for all your advice.
I was able to reset my password, get rid of an unused theme, and update my plugins. If hacking my site was possible, how regular is this to happen, and is Wordfence (the free version) useful or something hackers are attracted to?
My site is only used as a portfolio for design and artwork. Its function still seems to work, but as aCstudent pointed out that the site is blacklisted, is there a way to get things back to normal?Thanks.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageChad,
I have the problem sorted out finally and I want to thank you for all your help on this problem. I hope the rest of the sorting out of my site goes a lot more smoothly.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI hope the last bit I sent didn’t sound smart-ass. I wonder if there is anything else to be done going down this route. I don’t want to take up too much of your time. Would hiring a freelance designer be the way to go? It might not take much time if they were working on it directly.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI followed the steps of your latest posting and after adding the code you gave in the link to the function.php file. My screen was white except for the code below,
across the top.Getting better than a blank screen I guess. No backticks added in this case.
functions.php <?php add_action( ‘wp_enqueue_scripts’, ‘blask_parent_theme_enqueue_styles’ ); function blask_parent_theme_enqueue_styles() { wp_enqueue_style( ‘blask-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘blask-child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘blask-style’ ) ); }
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI removed the code from the child theme, copied the Blask parent theme portfolio-page.php and inserted it into the child theme functions.php file. The code you posted is different from that in my parent file, mine is without #? numbers. My code is shown below.
$args = array(
‘post_type’ => ‘jetpack-portfolio’,
‘posts_per_page’ => $posts_per_page,
‘paged’ => $paged,When I added your code after the code above in my functions.php child theme with the now parent portfolio-page.php, I got a total white screen and had to go back to my cpanel and trash my child theme.
- This reply was modified 8 years, 8 months ago by timyoungorg.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageHello Chad,
Thanks for the above thorough instructions. I tried your list of directions on my site and now have success in listing both my menu items with the project types.
On the other hand, I am not having success now with the child theme which was meant to have my opening page just present my “design” projects. I understand that when you suggested using the first snippet of code you meant the following—
<?php
function my_theme_enqueue_styles() {
$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
// https://ww.wp.xz.cn/support/topic/specific-project-type-on-front-page/#post-8873507
function my_home_project_type( $query ) {
if ( is_front_page() && is_main_query() ) {
$query->set( ‘tax_query’, array(
array(
‘taxonomy’ => ‘jetpack-portfolio-type’,
‘field’ => ‘slug’,
‘terms’ => ‘design’,
),
)
);
}
}
add_action( ‘pre_get_posts’, ‘my_home_project_type’ );
I used the above code in my child theme but it didn’t work as it did originally.
I just get the combined project types “design” and “illustration”. I disabled plugins but it had no effect.Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI tried it with nothing in the child theme but it made no difference. The only way at this time for me to get a listing in the menu is to add a new page called “illustration”. As before, if I check “primary menu” no listings appear.
Perhaps if I made an alternate addition to the child theme along the lines of the code there for “design”, I could have a separate page which only listed illustration projects. Below is the child theme code for the design projects.
/*
Theme Name: Blask Child
Template: blask
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blask-child
*/
<?phpfunction my_theme_enqueue_styles() {
$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
.site-branding {
display: none;
}.site-info { display: none; }
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
// https://ww.wp.xz.cn/support/topic/specific-project-type-on-front-page/#post-8873507
function my_home_project_type( $query ) {
if ( is_front_page() && is_main_query() ) {
$query->set( ‘tax_query’, array(
array(
‘taxonomy’ => ‘jetpack-portfolio-type’,
‘field’ => ‘slug’,
‘terms’ => ‘design’,
),
)
);
}
}
add_action( ‘pre_get_posts’, ‘my_home_project_type’ );
add_action( ‘pre_get_posts’, ‘my_pre_get_posts’ );
function my_pre_get_posts($query) {
if ($query->get(‘post_type’) === ‘nav_menu_item’) {
$query->set(‘tax_query’,”);
}
}Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI have set my menu display location to Primary Menu with the intended menu name and menu items. No items then appear when visiting the website. When I uncheck the Primary Menu, the Design heading then appears.
This may have something to do with the child theme set up for the home page to land on the Design projects types alone and not the whole archive and now I have to work around this to also add and show other project types as items in the menu.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageThe Menu page instructions make sense to me and I have an Illustration Project Type added to the Menu Structure but it does not appear as a menu item on my website. The Design heading as a page heading does appear on the menu area. This heading appears without any box selected under Menu Settings. When I check Primary Menu in the settings, the Design heading disappears on my website. Well, whatever works, but this seems strange.
I apologize if this seems elementary, but it has me stumped.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageAs you say, I don’t want to add another page to get the “illustration” heading to appear in the menu. I can’t see how otherwise to do this. I don’t know if you can view my menu structure under “appearance” in timyoung.ca where I was experimenting with categories and project types.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageYour advice worked in getting rid of the code comment. Thanks Chad.
On the matter of the menu, I have added back two items on the menu. The design heading works in just listing design items when clicked, but the illustration heading brings up all items—design and illustration. I still have my projects tagged as either design or illustration. Whether this is pertinent or not—when I visit the media library, I just get a spinning ball. Would you have any advice to get the illustration heading to work? Thanks.
Forum: Themes and Templates
In reply to: [Blask] Specific project type on front pageI have successfully, with support help, resolved a similar query. Is there a further procedure to complete my aim and get rid of the lettering at the top of the page which has appeared? I also guess your advice to redo the menu would apply to me as well?
The support thread of my previous help that has led to this is below.
https://ww.wp.xz.cn/support/topic/front-page-exclusive-project-type/#post-9252518
Forum: Themes and Templates
In reply to: [Blask] front page exclusive project typeI’ll try to get help like you suggested with the other thread. Thanks for going beyond the regular bounds of support help on this. Much appreciated.
Forum: Themes and Templates
In reply to: [Blask] front page exclusive project typeAdding to the previous question above, I’ve attached the url showing the information at the top of the page which has appeared and the missing menu on the left.
<img src=”http://timyoung.ca/wordpress/”
Forum: Themes and Templates
In reply to: [Blask] front page exclusive project typeWow, I’m tantalizingly close. When I tested the changes on my administration page,
I got the right look, with just the “design” category on the front page, but without the menu listings and also with “Theme Name: Black Child Theme…” across the top.When I tested my website directly, it was unchanged as before I added the child theme. (I’d like to add a screen grab to this question to illustrate but don’t know how.) Is there a bit of tinkering I need to make?