Rajat Chodhary
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Instagram Widget] [Suggestion] – Change filter to template partsThank you @scottsweb,
Regards,
RajatForum: Plugins
In reply to: [WP Instagram Widget] [Suggestion] – Change filter to template partsHello Scott,
[Fixed]
I figured it out. I have increased priority to 15 to make it run after default filter. Now, filter is overridden.For those who are visiting this ticked for a solution. I have added this line into my functions.php file and template-parts is my theme templates folders. Note: Underlying code is works fine for me. But, I, strongly, suggest you to use @scottsweb code in following reply.
apply_filters( 'wpiw_template_part', 'template-parts/wp-instagram-widget.php', 15 );
And, code inside template-parts/wp-instagram-widget.php is added below [I have removed alt and title from image tag].
<?php // It is a WP Instagram Widget template echo '<li class="'. esc_attr( $liclass ) .'"><a href="'. esc_url( $item['link'] ) .'" target="'. esc_attr( $target ) .'" class="'. esc_attr( $aclass ) .'"><img src="'. esc_url( $item[$size] ) . '" class="'. esc_attr( $imgclass ) .'"/></a></li>';
Regards,
Rajat chodhary
@wptantra- This reply was modified 7 years, 6 months ago by Rajat Chodhary.
- This reply was modified 7 years, 6 months ago by Rajat Chodhary.
Forum: Plugins
In reply to: [WP Instagram Widget] [Suggestion] – Change filter to template partsHello Scott,
I know that “Don’t fix unless it is broken“, and it is true.
But, I tried to apply override filter with higher priority. But, it doesn’t work. Right now, I am using two template folder (parts and template-parts) in my theme.
May be you may demonstrate me how to do that?Regards
RajatForum: Plugins
In reply to: [WP Instagram Widget] Leaving out the Link textYou are not doing anything wrong. If you know little bit about using FTP. Then, follow my instructions:
1. Go to your current theme and make a folder name it “parts” in all lower case.
2. Create a new file inside “parts” folder using textedit or notepad, and name “wp-instagram-widget.php” & save it.
3. Add following code and save it.<?php // It is a WP Instagram Widget template echo '<li class="'. esc_attr( $liclass ) .'"><a href="'. esc_url( $item['link'] ) .'" target="'. esc_attr( $target ) .'" class="'. esc_attr( $aclass ) .'"><img src="'. esc_url( $item[$size] ) . '" class="'. esc_attr( $imgclass ) .'"/></a></li>';
4. Using FTP, upload entire “parts” folder to your current theme directory.
If you are going to use plugin often. Then, save it in some place safe.
Please, let me if it doesn’t work.
RegardsForum: Fixing WordPress
In reply to: WordPress redirect to an IP on mobileSorry, I was not able to update ticket. I have fixed it myself. I update theme with fresh copy.
Forum: Fixing WordPress
In reply to: WordPress redirect to an IP on mobileThere was a bad plugin which was working without plugin declaration. I had removed it along with all installed plugins. Then, I did a fresh installation of theme and everything. But, problem is still there.
Forum: Plugins
In reply to: [WPCustom Category Image] Seems not working since 4.5+1
Forum: Fixing WordPress
In reply to: Migrate large volume WordPress website.Resolved
Forum: Fixing WordPress
In reply to: Migrate large volume WordPress website.Thank you @catacaustic.
You are king under the Sun, Moon & MountainsForum: Fixing WordPress
In reply to: Migrate large volume WordPress website.Thank you @catacaustic,
That is really a great suggestion. But,I am not going to use cPanel on my VPS. I have migrated a lot of websites from one server to another, and never work with SSH. All those websites were very decent in size like 150-300MB.
Do you have any link to any reference material related to website using SSH method?
Thank you,
Forum: Fixing WordPress
In reply to: I'm missing editing tools on only one page – help!You can share screenshot using https://postimage.org/
Forum: Themes and Templates
In reply to: [Fashionistas] translation is not workingHello Maxflex,
For security purpose, change your database password and update in wp-config as well. If you need to share wp-config.php file, always mask database, username, password and salts.
Added screenshot of fashionistas child theme (Dashboard & Home page)
https://postimg.org/image/uep7jbw1r/
https://postimg.org/image/tyma4ds8x/As I do not have entire language file. It works for me.
Try to change language option in Settings > General as well.Forum: Themes and Templates
In reply to: [Fashionistas] translation is not workingHello,
I think that you need to change WordPress settings in wp-config.php to recognize your country.
define ('WPLANG', 'pl_PL');
Make sure that your pl_PL.po is in lang folder of your theme or child theme.
Forum: Fixing WordPress
In reply to: Not Acceptable error after login/register/logoutPlease, check wordpress great resource at https://codex.www.ads-software.com/htaccess.
Thanks
Forum: Fixing WordPress
In reply to: Sidebar/Page layout on specific pages??It is simple. You just need to have a registered widget, and a call of it.
if you want to use a existing sidebar. Then, call to that sidebar-
sidebar-[slug].php –> <?php get_sidebar( ‘slug’ ); ?>