EMar
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Customer country flags on product page?Thanks for your reply,
Nah, it’s one of those things that detects the user’s geographical location,
Then displays their country flag, with the same text message displayed for all.I saw it while looking at product pages on another site. “We ship to your country!”
If you’re logged in I guess it could even display your name + message + country flag.Just installed StoreFront, nice stuff but..
Why should you need to dig into the code to change the number of product
categories in the home page? it should be a setting in the customizer.I saw a plugin for increasing the number of products per row,
But is there a plugin to change the number of product categories per row?I guess I’ll need to find a child-theme next, to do this functions.php edit.
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Ad Inserter page slow to load..I have a custom theme, bit difficult to get ahold of the developer.
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Ad Inserter page slow to load..Sorry for late reply, I meant to test it last night, I have 31 plugins.
Anyway, I just disabled 30 plugins and no change, so must be the theme.So what I’m looking for is something like
<div id=”main” class=”rightsidebar”>
or
<div id=”primary” class=”pagemid”>
<div class=”inner”>
<div class=”content-area”>Hey,
Disabling Shift body worked but it’s a nice effect..
Not sure what you meant by using Shift Body setting with a wrapper,
But do you know if there’s any way for fix this when using Shift Body?Forum: Fixing WordPress
In reply to: Replace header logo with html5 animationAh I think my theme code is a bit different, if I’m in the right header file.
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<?php endif; ?>
<?phpThanks, disabling Shift Body seems to have worked.
Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetThanks Hudson for the info, I didn’t know about that, I’ll get on it.
Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetSorry I lost you on the last bit, <?php get_sidebar();?>
I want to display it in a widget area not replace the sidebar.Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetThere is a php file for displaying the app.
That’s what I pasted into the PHP Code widget.
This is how it looks in the theme sidebar area.Actually I’m using a shorter version of the above document for the widget area.
I’m not sure how to include each file in functions.php
I see this enqueue function in my functions.php
/** * Enqueue the css and js files in child theme * */ function child_enqueue_scripts( $file_dir,$file_url ){ $child_style = str_replace( get_template_directory(),get_stylesheet_directory(),$file_dir); if(file_exists($child_style)){ return str_replace( get_template_directory_uri(),get_stylesheet_directory_uri(),$file_url); }else{ return $file_url; } }- This reply was modified 8 years, 3 months ago by EMar.
Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetI think I found a solution but don’t know if i’s the best one.
I installed PHP Code Widget and pasted the php file into the widget text area.Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetWould creating a custom plugin work, then add it as a widget?
I was reading up on that last night but my code was rejected each
time because of some errors in my javascript code.
I need to reuse this script for different pages, sidebar widget.
But each page has different now playing song info so the code
would have different settings in each widget.Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetIt worked fine until I edited and saved the widget, so something has changed.
I thought there might be a widget editor for displaying javascript and other code.
I have this same code for 22 radio pages, so I can’t touch any of them right now.Forum: Fixing WordPress
In reply to: Can’t display my code in any widgetSorry I should have explained better,
I’m using an app I bought on CodeCanyon that displays a block for shoutcast now playing
info and last tracks played, usually I would copy a piece of code into a sidebar widget
and it would display the app on my sidebar, which has worked on and off, always have
issues with text widgets displaying it, but it was working.I then edited some text and saved the widget again, the code is still intact but it’s
not displaying the app in the sidebar.This is the app I use link
Usually I just embed this snippet of code and it displays in the sidebar text widget.
With this:
<!--start shoutcast style--> <link rel="stylesheet" type="text/css" href="https://site.com/shoutcastinfo-ambient/css/darkVertical.css" media="screen" /><!--shoutcast info style--> <link href="https://www.site.com/shoutcastinfo-ambient/player/clean.css" rel="stylesheet" type="text/css" /><!--player style--> <link href="https://www.netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link href='https://www.fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=latin,greek,vietnamese,cyrillic' rel='stylesheet' type='text/css'> <!--end shoutcast style--> <!--start javascripts/css - WARNING!! if you have already the jQuery libraries in your page or Fancybox you must remove these lines from here!!--> <link rel="stylesheet" type="text/css" href="https://www.site.com/shoutcastinfo-ambient/js/fancybox/jquery.fancybox-1.3.0.css" media="screen" /> <script type="text/javascript" src="https://www.site.com/shoutcastinfo-ambient/js/fancybox/jquery.fancybox-1.3.0.pack.js"></script> <script src="https://www.site.com/shoutcastinfo-ambient/js/simple-slider.min.js"></script> <!--end javascripts/css--> <!--start shoutcast javascripts--> <script> //settings var websiteUrl = 'https://www.site.com/shoutcastinfo-ambient/';//website url var showPlayer = '0';//show player status var shoutcastUrl = '198.24.145.147:9332';//shoutcast stream server url var autostartPlayer = false;//autostart player status var displayPlayer = 'top';//player area </script> <script type="text/javascript" src="https://www.site.com/shoutcastinfo-ambient/js/main.js"></script> <!--end shoutcast javascripts--> <!--SHOUTCAST INFO AND STATS START - Add this in your page(s)--> <div id="statsOuter"> <div id='playNow'> <!--show Shoutcast info and stats here--> </div> <div id='hiddeNowPlay'> <!--hidden title--> </div> </div> <!--SHOUTCAST INFO AND STATS END-->