Gagan Goraya
Forum Replies Created
-
Forum: Networking WordPress
In reply to: url_to_postid() with multisitecame across the same issue while working on some functionality
If this may help someone
//convert the url to make sense to the target blog global $current_blog; $target_blog_details = get_blog_details($blog); $url = str_replace($current_blog->path, $target_blog_details->path, $url); //now the url will make sense to the target blog switch_to_blog ($blog); $id = url_to_postid($url); restore_current_blog(); //this will work, provided that the translated url does have a corresponding post in the target blog
Forum: Themes and Templates
In reply to: PHP variable as css valuemt_rand is automatically seeded on each execution so u will get a diff number every time when it executes in a loop.
And take out those CSS comments, you do not need those here. The /* … */ things. And put closing quote at the end of the style definition I.e, “>
Forum: Themes and Templates
In reply to: [Esplanade] iPad Sidebar layoutOk, a precise solution here
In the css file https://msg.med.upenn.edu/wp-content/themes/esplanade/style.css
From inside the
@media screen and (max-width: 960px) { ... }
blockcut the following code
.content-sidebar-wrap, #content, .page-template-template-sidebar-content-sidebar-php .content-sidebar-wrap #content, #sidebar, #sidebar-right, #sidebar-left { float:none; width:auto; }
and paste it inside the
@media screen and (max-width: 640px) {...}
block. Put it before the existing code in this block.It will get you rid of your worries ??
Forum: Themes and Templates
In reply to: Octofirst widget and slider data cannot be foundFrom the distance I can say that
Most probably the theme specific settings would be found in the wp_options table. However, most of the themes save their settings using the add_option or update_option methods that save the settings in a JSON kinda format. Manually playing with the field values directly in the database may corrupt all the settings if you are not careful about updating the content length attribute of the field as well.
I don’t have access to the octofirst theme so this is my assumption based on most of the themes I have been through
Kind Regards
GaganForum: Themes and Templates
In reply to: [WP-Creativix] MobIle view says site under constructionlooks like some artificial intelligence at play ??
Clearing the cache would be analogous to brain washing your website ??
okie, yes, as WPyogi mentioned, posting the link could help diagnose the situation as the issue seems specific to your website.
hey, I hope u dont mind my comments above.