WordPress dFactory Cookie Notice Plugin
I was able to find a solution after trying multiple things. I just had to put the javascript code from google analytics between a php if condition like this:
I was able to find a solution after trying multiple things. I just had to put the javascript code from google analytics between a php if condition like this:
Ok I am currently doing some work on my personal blog. On the home page I am displaying my latest tweet using a bit of jQuery code. This just gets my latest tweet from twitter, converts any URLs to anchor tags and puts that in a div with an id of tweet-text. However I feel … Read more
I’m just using register_post_type to generate my new post type ‘gcg_block’ and generate the ui menu in the admin page. Using add_post_type_support for ‘author’ gives me the column Author in my page (although not sortable). I want to add a column ‘Shortcode’ to this list and fill it with custom data. I believe I want … Read more
It is just the naming convention which increases code readability. you can replace it with any name it won’t affect your code. Example I: Example II: Both the code example I and II will have same output, but first example has a good user readability and if you have a long method/code then after seeing … Read more
You’re missing assets/css/flaticon.css from the example website. Specifically, this CSS which you can probably dump onto the end of style.css
I am fairly new to WordPress. On my homepage I have a navigation bar which I only want to show to people who are logged in as users. In my header.php the function is_logged_in doesn’t seem to work. I want to place a condition in my header.php file to check if the user has logged … Read more
I’ve added the following code to my theme’s functions.php file: Within my template I have code such as: And this is the image it outputs: The original size of the image is 2440px x 1440px so I don’t understand why it’s not respecting my height category. It’s a brand new image that’s been uploaded, but … Read more
There might be a way to do this in your plugin (depends on the plugin), but assuming the Analytics code is added in the header, you could add the following just before </head> in header.php: It’s untested, but it should do the trick.
I am trying to create a rebrandly short link using a WordPress shortcode. Here’s what I have so far: Following the directions for PHP here – https://developers.rebrandly.com/docs The shortcode I’m testing is [shortlink]https://example.com[/shortlink] but its not working. When I change the part: $post_data[“destination”] = $content; to $post_data[“destination”] = “http://example.com”; it works. I must be putting … Read more
In your theme’s functions.php file, add this: Then just create your custom login.css file that makes whatever changes you want. To change the link and alt text on the login logo from WordPress.org to the title/url for your site, use these filters in your functions.php file: