mrandyjoe
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme Directory@otto42 Thank you so much!! I thought there might be something like that for really old themes but I had no idea where to ask for help. I didn’t know about the Slack either but I’ll use that from now on for issues like this. Thanks again!
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme DirectoryI thought I had started this thread on the WordPress Developer forum section, but it looks like it is accidentally in the “Everything Else” section. If you want to migrate it there, then that is fine. Again, the issue is that I am the author of the Aplos theme and the Theme Directory page is not showing my updates, despite the fact that I have pushed updates and they have been approved.
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme Directory@t-p I am the author of that theme! That is what this entire conversation has been about. I have pushed an update to MY theme, that I have authored, and it is not changing the listing on the Theme Directory Page.
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme Directory@t-p I think maybe I didn’t explain the problem clearly enough – I am referring to the fact that the official WordPress Theme Directory page for my theme is not showing the newest version of my theme, despite it having updated nearly a month ago. Here is the link to my theme’s official page: https://ww.wp.xz.cn/themes/aplos/
Can you please visit that link to see what I am referring to? If you download the theme on that page you will see it still downloads version 1.1.2 (despite 1.20 being the new version) and that there is still the “This theme hasn’t been updated in over 2 years” warning.
Yet, WordPress approved my theme update and it is visible on the WordPress subversion repository, as you can see it hosted here: https://themes.svn.ww.wp.xz.cn/aplos/
This has nothing to do with caching or any specific implementation of theme. I am referring to a problem with the official WordPress Theme Directory page itself. Does that make sense?
I might need to contact someone who actually works on the WordPress Theme Directory as this might be a bug with the site. I just want to make certain that there is nothing else that needs to change in my code for my updates to appear on the theme listing page. So far what I have gathered from you is that all I should need is to update the version in my style.css file, which I had already done. If this is actually a problem with the WordPress Theme Directory itself, do you know who I would contact for that?
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme Directory@t-p It is updated in my style.css though. Here’s a link to it in the wordpress subversion repository where you can see it says 1.2.0: https://themes.svn.ww.wp.xz.cn/aplos/1.2.0/style.css
I’m wondering if even though my commits were taken, because it’s been so long since I’ve updated it, the theme directory has archived it or something and it needs to be “re-activated” before new changes will show up. Does such a system like that even exist though?
Forum: Everything else WordPress
In reply to: Updated theme not appearing in Theme Directory@t-p can you elaborate on where I need to update the version? I have already updated the version number to 1.2.0 in my style.css file, the stable tag is set to 1.2.0 in my readme.txt, and if you look at the subversion repository in the theme directory you can see that the most recent update is labeled 1.2.0. Is there another place in the code or in the theme directory I need to go to so that it shows up as having been updated?
Note that the preview in the theme directory still shows version 1.1.2 despite this.
Forum: Fixing WordPress
In reply to: Theme Customizer only applies settings after saving once.I suppose I could clarify things and give an example of what I’m doing. It’s possible I’m not implementing the Customize API in the best way and someone has alternatives (my theme is Aplos btw).
Everything here is contained in functions.php.
First I create my customizer function and add a setting for link colors (I don’t need to create a new section as I’ll just be putting it in the default Colors section that comes in the Appearance menu):
function aplos_customize_register($wp_customize) { $wp_customize->add_setting( 'link_color', array( 'default' => '#8F1E0C', 'type' => 'theme_mod', ) );Then, in that same function, I add my control for the setting:
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aplos_link_color', array( 'label' => __( 'Link Color', 'aplos' ), 'section' => 'colors', 'settings' => 'link_color', 'priority' => 15, ) ) );I then create a new function that actually customizes the CSS and prints the desired values in the header based off of what is set by the Customizer:
function aplos_customize_css() { ?> <style type="text/css"> a, a:visited { color:<?php echo get_theme_mod('link_color'); ?>; } </style> <?php }I then hook both of those functions into the theme:
add_action('customize_register', 'aplos_customize_register'); add_action( 'wp_head', 'aplos_customize_css');And that is pretty much all I am doing. So this will print a separate stylesheet in the head of the theme based on what is set in the Appearance menu.
However, as outlined in my original post, I noticed that the first time a user installed my theme, none of the default values were being used. Even in the preview on the official WordPress theme page, none of those values were being set and it looked horrible. So I went ahead and hardcoded in the default values into the main theme stylesheet. Technically this means that styles are printed twice, but it uses what is set by the Customizer because that stylesheet is printed last.
I don’t want this behavior. I’m going to have font subset choices soon and don’t want people loading two separate font files for performance reasons (if the @font-face rule is printed twice). So does anyone know how I can use the Customizer and not have to hard-code my default styles into the main theme stylesheet?
Forum: Fixing WordPress
In reply to: Removing link from site titleGlad to be of service!
Forum: Fixing WordPress
In reply to: [Menu] Change navigation menu design on mobile devicesYou’re just going to have to use good old fashioned CSS to style that select menu the way you want. Inside your media query (the bit of code you pasted above) you’ll need to specifically target the select field and then add any design changes you want. For example, you could add
#mainmenu select { border: 0 solid transparent; text-transform: uppercase; color: #999; font-family: Arial, sans-serif; }That should remove the box border of the menu and change all the text to an uppercase gray Arial font. Of course you’re going to have to figure out exactly what styling you need, but that should be the place to do it.
Forum: Fixing WordPress
In reply to: Removing link from site titleAlso, I realized you were interested in removing the link from the site header. If you want to do this ONLY to change the color, then I highly recommend against it, as having your site title be a link is expected as normal site behavior. However, if you really want to remove it, then I dug around in the Hueman theme and discovered that you actually need to be editing functions.php not your header file.
Inside functions.php there is a section with the title “Site name/logo”. Near the end of that section there is a conditional statement that reads:
if ( is_front_page() || is_home() ) { $sitename = '<h1 class="site-title">'.$link.'</h1>'."\n"; } else { $sitename = '<p class="site-title">'.$link.'</p>'."\n"; }You need to change the two $link variables in that code to be $logo instead. This will keep the text but not have it link to anything.
Forum: Fixing WordPress
In reply to: Removing link from site titleIt looks to me like you are setting the site title color to be the blue as well in your CSS file though. If you look in the last line of that style block, you’ll see that “site-title a” is set to a color of #1400ED which is blue. Change that to whatever color you’d like and you should be good to go.
Forum: Fixing WordPress
In reply to: Point URL to subdirectory on Windows server (GoDaddy)Thank you so much for your help but I actually solved it! I’ll post here what happened just in case someone else finds themselves in this situation.
There was a conflict between web.config files. I had one in the root folder that I copied over and still had the same file in my subdirectory. I simply had to delete that file in my subdirectory and it worked.
However, I also had a separate blog subdirectory. When I deleted that web.config file, I could see the site and it had the theme installed, but it couldn’t find individual posts. Turns out this was a problem with permalinks. So I put the web.config file back in that particular subdirectory but had to change the rule name so it did not conflict with the root web.config file. This post was very helpful in understanding what needed to be done.
Forum: Fixing WordPress
In reply to: custom page template not workingWell, if you have this specific code you can see your closing div tag is missing an > . Hopefully your only problem is a typo!
Forum: Fixing WordPress
In reply to: How do I get rid of the "posted by…on" on the home page of my siteThere’s a couple of ways you could go about this and it all depends on how comfortable with coding you are and what theme you are using.
If you don’t like the idea of looking through PHP files and editing your actual theme, you could simply not display the items after they are generated. I see it is enclosed in a div with a class called “byline”. In your main CSS file you could simply add
.byline { display:none; }and this should stop displaying the element (although it is technically still created by your theme).
Otherwise, you could try to find where the line is generated in your specific theme files. Probably it displays this info on both your main home page and on the individual posts which means there would be two files that need editing. If you just text search for the phrase “Posted by” in the correct files, you’ll probably find the actual line (will be some sort of print line with variables for author, date, and categories). Then you could just delete that print line. Of course, if you’re editing theme files it’s always a good idea to make backups just in case something looks weird.
Forum: Fixing WordPress
In reply to: Point URL to subdirectory on Windows server (GoDaddy)Yes, I just checked the database and those table values are exactly what you said (and as they should be). I did change those in my general settings before moving around files.
I’m pretty sure this has to be an issue with the fact that it’s on a Windows server. My research keeps turning up something about IIS but I really don’t understand it.