adnanmg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress Gallery to Image LinksWow Joy, this worked for me! I was able to make a simple wp plugin using the code you provided, and it put html links in the xml that I exported. This was able to be read by squarespace’s import process. I am still working through that process of getting a new page setup, but I wanted to thank you for giving me this and also let you know that it worked.
Much appreciated.
- This reply was modified 4 years, 10 months ago by adnanmg.
Forum: Fixing WordPress
In reply to: Changing WordPress Galleries to Image Linksfrom the site: https://www.wpexplorer.com/writing-simple-wordpress-plugin/
I got this as a start:
<?php /** * Plugin Name: mgexpgcode * Plugin URI: https://www.mywebsite.com/my-first-plugin * Description: The very first plugin that I have ever created. * Version: 1.0 * Author: Your Name * Author URI: https://www.mywebsite.com */ /* function renym_content_replace( $content ) { $search = array( 'wordpress', 'goat', 'Easter', '70', 'sensational' ); $replace = array( 'WordPress', 'coffee', 'Easter holidays', 'seventy', 'extraordinary' ); return str_replace( $search, $replace, $content ); } add_filter( 'the_content', 'renym_content_replace' ); */ function mgexpgcode( $content ) { query all posts for each post expanded = do_shortcode( get_the_content() ) wp_update_post with expanded content }
I write python code myself, but this is new to me. I need to do something similar to search and replace the gallery code with expanded html content of the image links. Help please.
Thanks.
Forum: Fixing WordPress
In reply to: Changing WordPress Galleries to Image Linksok, in that case, can I please get some help creating a wordpress plugin for this purpose?
Forum: Fixing WordPress
In reply to: Changing WordPress Galleries to Image LinksHi Joy,
thanks again for this information. I was wondering if I could contact you about a plugin for this purpose. I was unable to contact you via the form on your website.
Forum: Fixing WordPress
In reply to: Changing WordPress Galleries to Image Linksthanks Joy. Unfortunately it is a lot of pages. Hmmm. I wonder if there is a plugin like that.
Forum: Themes and Templates
In reply to: [ColorWay] Header Widgetized Area issuesThanks for the replies Salman. Unfortunately, I have not been able to change the container size via css as you suggested. I have tried, but likely have not typed in the right parameters.
Both divs are set to ID.
Not sure how to reduce the container sizes.
Adnan
Forum: Themes and Templates
In reply to: [ColorWay] Header Widgetized Area issuesCode in my header.php
<div class="container"> <div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (inkthemes_get_option('colorway_logo') != '') { ?><?php echo inkthemes_get_option('colorway_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?> logo"/></a> </div> <div class="header_widget"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('header-widget') ) : ?> <?php endif; ?> </div> </div>
style.css:
#logo { border: 0px solid red; float: left} #header_widget { border: 0px solid red; float: left}
Forum: Themes and Templates
In reply to: [ColorWay] Header Widgetized Area issuesthanks for the replies. yes it is messy as I am debugging problems.
Under the logo, is a header widget, that contains an animated gif, social icons and a search field. Those are widgets. I want that widget area moved to the right of the logo, not below it.
Forum: Themes and Templates
In reply to: Twenty Ten Theme customization Body ContentOops, I meant Alchymth’s suggestion on the background color change. I’ve been chipping away on transitioning my website to WordPress over the last few weeks, having used it for my blog for years, and honestly, it’s the best decision I have made.
Using the twenty ten theme which is so widespread and therefore has a lot of tips available from nice people like all of you has helped a lot.
Great stuff!
-Adnan
Forum: Themes and Templates
In reply to: Twenty Ten Theme customization Body ContentThank you so much Alchymth, Esmi and Chip!
1. Esmi’s code got the image up against the menu. Perfect!:
body.home #main { padding-top:0; position:relative; top:-72px; }
2. Esmi’s code with a slight modification let me line up the image to the left:
body.home .entry-content img { position:relative; left:-150px; }
3. I used Chip’s suggestion and was able to change the bg color in the dashboard.
And, when I am home, I will take Chip’s advice and use the browser extensions!
Thank you all so much for your invaluable help.
Sincerely,
Adnan
Forum: Themes and Templates
In reply to: Twenty Ten Theme customization Body ContentThanks for the reply Esmi. I agree, and am applying all changes to the child theme. Would you have any ideas about some of the customizations I asked about? Either way, thanks for taking the time to reply :).