Hopefully this image works https://prnt.sc/9ZbYt1rjqVeS
The translation idea is a good one but i only need this to apply to this specific post type.
So I have hidden the comment title and made my own but it lacks the count. This is ok though. The problem is the comments themselves look like traditional comments. The comment form then uses the word comment which is confusing when it should be reading “answer”.
I have tried playing around with CSS to do something like element:after{content:’Submit Answer’;} but its kinda messy getting this to work too
Thanks for this but this is a hardcoded FAQ. The image I attached to my first comment didn’t show up but I am trying to style the comments section to act as answers. The comment block for the cloud template doesn’t allow for me to change the title from X Comments to X Answers. I also do not know how to restyle the appearance of the comments. I wanted to make a dynamic Q/A section where someone could create a question and people visiting the page could answer the question. The comments section would serve as the answers
Hey,
What HTML, the file you linked to is an empty file. I cant tell if you are being sarcastic here? Are you trying to suggest I figure it out myself?
Thanks Anamaria. The link results in a 0kb file called “A.txt” being downloaded. Is the link correct?
Hey Calin, you are correct and i have observed the comments working this way on demo sites. I have tried disabling plugins and I have not been able to find it. I have two websites, both using Newspaper and one works, the other doesn’t. I can’t identify the differences between them that is causing this. My last resort for now is to add the event handler back. If you can tell me what JS function I can call, I will be able to quickly add this back for now until I can find the actual cause. There are no JS errors in the console.
Edit
I have found the cause. I disabled Rocket Loader™ from Cloudflare and comment replies are working again. Is this a known conflict with the theme?
-
This reply was modified 4 years by
dano1066.
Can you be a little more helpful here? It is quite frustrating that something is so easy to implement manually but cant because it looks like the code was actively written to prevent it.
tdb_state_template::get_template_type()
Is what prevents most pages working correctly. If this could be overridden somehow, we could return “category” for other tax pages to ensure the correct data is shown or pulled from queries.
private $category_obj = '';
Is another issue. If this were marked as protected, we could extend the class and modify the behaviour. If i change this to protected, it will break my site when an update is released and the scope changes back to private.
I don’t understand why the option, which would be easy to leave in the code, is shut off for people to expand upon. Fair enough if you guys don’t want to write the code to support it but why actively block others from doing it for their own personal websites?
Is there any sort of workaround we can program ourselves that will allow us to use cloud templates with custom posts and taxonomies?
I have found that if you create a taxonomy page in the theme so “taxonomy-name.php”. Inside this theme, I have taken the shortcodes from the cloud template and it does load up the CSS correctly but I am unsure how to modify this to query posts for the taxonomy as the data showing is incorrect. Replacing category_id=”‘.$term->term_id.'” will populate some of the shortcodes with the correct data but not all of the shortcodes have this argument. I could add it to the theme code but it would lock me out of updates in the future then, so not ideal.
Considering how easy this was to do, surely it isn’t a massive obstacle to add cloud template support for custom taxonomies and posts?
-
This reply was modified 4 years by
dano1066.
If it is not possible for me to select a taxonomy other than the default category as the taxonomy for breadcrumbs on the default post type, is there a hook in the theme that will allow me to override breadcrumbs to get custom breadcrumbs?
Hey,
Theme Panel -> CPT & Taxonomy -> Post Type -> Breadcrumbs Taxonomy
This setting lets me change the taxonomy for a custom post type. I like this and want to also change the breadcrumb taxonomy for the standard post type
-
This reply was modified 5 years by
dano1066.
Is there any way at all to control CPT pages so? I have tried creating single-posttype.php and this removes the sidebar from the page.
Modifying the code to add a sidebar just returns a blank sidebar which is also pretty useless to me. I also find that the social share buttons vanish when I create a CPT .PHP file
I had made a call to dynamic_sidebar( ‘td-default’ ) but it comes back empty for this CPT page
i can get the desktop load speed to move up to 88 after i install the speed booster plugin, but i still get issues. The first is a javascript error which breaks the lazy load and also breaks the posts what use the large backdrop.
(index):1153 Uncaught ReferenceError: tdAjaxCount is not defined
I also cant seem to get the main theme style.css to move to the footer even when i add the item to the speed booster plugin which is why i want to just reduce its size. It i can bring it down to 100kb or so it will take a lot of the pain away.
I have done everything that is possible to reduce the page load speed. The render blocking js/css is the only thing that is holding back the google page speed. There is nothing left for me to do other than reduce the size of the css and JS files. I definitely understand the advantage of limiting the requests, but it wouldnt hurt to give us some options. I use the same blog theme on every page and im quite happy with this. the page size is the only issue i have left with this theme. i want to do every last thing i can to make it run better
Im not sure what is going on, but the normal code to detect whether the connection is https using htaccess does not work for me. Everything i try just messes up. According to apache the connection is on port 80 even though i have the green padlock in the nav bar. Anyway i was able to make it work using php as there was one consistent variable that was working for me.
This should be a search engine friendly option right? I put this at the top of index.php in the wordpress root so it is the first thing that it will process.
if($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == “http”)
{
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: https://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]);
die();
}
adventure is one way to describe it! i have it working to a degree. if i change the url in the browser to https the page loads fine, but if i use the htaccess redirect i still get the redirect loop. this is the most difficult setup of ssl ive ever had!
Hi Chris,
Thanks for the response. I tried putting a wildcard redirect and it ended up giving me a redirect loop error. This same thing happens when i use define(‘FORCE_SSL_LOGIN’, true);
In order to test this without bringing the site down i have implemented the following. Its working, bar the mismatch issues with the css and js. if i can figure out what causes the redirect loop on the login page it should sort the same issue when i put the global redirect
if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == “https”)
{
define(‘WP_HOME’, ‘https://’ . $web_site_url);
define(‘WP_SITEURL’,’https://’ . $web_site_url);
//define(‘FORCE_SSL_LOGIN’, true);
}
else
{
define(‘WP_HOME’, ‘http://’ . $web_site_url);
define(‘WP_SITEURL’,’http://’ . $web_site_url);
}
Hey, thanks for the response. This was very helpful. I wanted to try and keep the theme code intact in case i ever wanted to change something for a specific post. Found this was very easily done through the database.
The theme setting for a post is stored in wp_postmeta. There is a key called “td_post_theme_settings” that contains the specific settings. By deleting this row, the post will revert to the global default. I ran the following command to clear the custom setting for every post.
DELETE FROM wp_postmeta WHERE meta_key LIKE ‘td_post_theme_settings’
I will give ye guys credit, this theme is so easy to work with. It would take me hours to fix this if i had to jump into code. Took 5 mins to fix everything. Personally i like style 11 the most and im bummed It was a concern. I will respond to the warning now that everything is fixed and see if i can trigger a response from them. I will report back here if there is anything additional that i get back from them.
Thank you for the help.
Thanks for your reply. I am using a sticky sidebar so this could be whats going on. After getting in touch with adsense i can confirm some other violations.
1) Sticky menu is not allowed. If any contents of the main menu cover an ad it’s against policy. In my case there was a drop down menu AND the menu was sticky which was a double violation.
2) Content before the fold. I was using style 11 for all of my posts. This style results in an ad before the fold, but 0 content. Which in googles eyes means you are sending visitors to a page with nothing but ad content. This style cannot be used with adsense.
Thanks for the image it was very helpful. I was able to get the input fields to show up on the post form, but the changes arent reflected on the output of the post. The changes are getting saved as the chosen option is still present. Any idea what i need to do to make the template reflect on the output of the custom post?
On a side note, i dont want to directly edit the theme as this makes things difficult in the future if the theme gets an update. I was able to make the meta boxes display using a custom plugin. IF anyone needs this in the future i used the following code to achieve the desired functionality without needing to edit the theme.
add_action('init', 'register_theme_metaboxes', 10000);
function register_theme_metaboxes() {
include_once get_template_directory() . '/includes/wp_booster/wp-admin/external/wpalchemy/MetaBox.php';
new WPAlchemy_MetaBox(array(
'id' => 'td_post_theme_settings',
'title' => 'Post Settings',
'types' => array("faq", "bg-post"),
'priority' => 'high',
'template' => get_template_directory() . '/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php',
));
}
You still misunderstand. wpadminbar is not displaying on the page. It should be as the theme is expecting it to be there, but it isnt.
I have just used the following to create a new admin bar and display it. Doesnt work as good as the proper one, but its better than nothing.
$wp_admin_bar = new WP_Admin_Bar;
$wp_admin_bar->initialize();
.
.
This cant be fixed via wordpress its a code problem. I have a custom file “mypage.php” Inside this file i call get_header() and get_footer() for this theme. The theme displays perfectly on my page and acts every way that i want it to, but there is a margin at the top of the page to take the admin toolbar into account, yet the admin toolbar is not present
Adding the following will make a blank bar display on the page, but its a new instance of the object. Im assuming an existing object is already present in memory just not displaying.
require (‘wp-includes/class-wp-admin-bar.php’);
$adminbar = new WP_Admin_Bar;
$adminbar->initialize();
$adminbar->render();